-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐞] Debugging Qwik code from VSCode does not seem to respect source files #2391
Comments
As the loom is a bit fuzzy, below are my config files. In my scenario, I want to set breakpoints depending upon results I get from the proxied backend api sever (in real-time / on-the-fly) without having to re-execute an entire clean run, which sometimes means cleaning up partial backend transactions. Without original file source-level debugging, the DX becomes a bit painful.
|
This is a problem with Vite. Currently it doesn't support breakpoints or sourcemaps on the server code. Here's my solution to this problem: cyco130/vavite#17. It uses Node's experimental ESM loader feature, enabling sourcemaps and breakpoints on the server. The downside is, it almost certainly leaks memory. I find it an acceptable compromise since restarting the server once in a while is enough the clean up resources but your mileage may vary. |
This should be greatly improved in the latest release Vite 4.2! |
Which component is affected?
Qwik Rollup / Vite plugin
Describe the bug
Clicking on the line in VSCode to attach the breakpoint results in different file showing up when the. breakpoint hits.
https://www.loom.com/share/0aec8aea483e493083ecb4e64f3be036
Reproduction
https://www.loom.com/share/0aec8aea483e493083ecb4e64f3be036
Steps to reproduce
No response
System Info
Additional Information
No response
The text was updated successfully, but these errors were encountered: