Skip to content

New breakpoints are mapped to incorrect lines / sourcemap after webpack HMR in existing attached debugger. #155331

@shahmirn

Description

@shahmirn

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

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions