-
Notifications
You must be signed in to change notification settings - Fork 29k
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
New breakpoints are mapped to incorrect lines / sourcemap after webpack HMR in existing attached debugger. #155331
Comments
Failing that, this can most easily be tested by using |
This comment was marked as off-topic.
This comment was marked as off-topic.
Generally this is an issue with sourcemaps or some other code transformation. It does not sound like you're facing the same issue as this user. |
I'm not able to repro this issue, seems thing to work quite well from a UX and code perspective. Note that you need to save the files for HMR to kick in, and there might be a slight delay before it does. If any issues are encountered, please add |
Didn't get to it. Might try again later |
I have an express server written in Typescript, using Webpack with hot module replacement, and sourcemaps in order to debug.
When I first attach the debugger to the running server, the breakpoints are mapped to the correct lines. However, after a few changes and HMR updating the files, any new breakpoints are mapped to the wrong line, until I disconnect the debugger, and then re-attach it to the process, at which point, new breakpoints are mapped to the correct line again.
Untitled.mp4
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
See video above, which shows the issue
The text was updated successfully, but these errors were encountered: