New breakpoints are mapped to incorrect lines / sourcemap after webpack HMR in existing attached debugger. #155331
Description
opened on Jul 15, 2022
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
- VS Code Version: 1.69.1
- OS Version: OSX 12 and 13
Steps to Reproduce:
See video above, which shows the issue
Activity