microsoft / vscode-js-debug

A DAP-compatible JavaScript debugger. Used in VS Code, VS, + more
MIT License
1.64k stars 271 forks source link

Breakpoints stop working if you use @ in your package name #1152

Closed Okrekso closed 2 years ago

Okrekso commented 2 years ago

I have a project that was renamed from somename to @scope/somename in package.json and after that all my breakpoints while I'm debugging my webpack app in chrome stop working. They all are marked as unbounded.

To Reproduce

  1. Create a project with name in package.json contains @ sign
  2. configure webpack
  3. run default 'pwa-chrome' debug session
  4. place breakpoint in some place

If I rename it in package.json to any other name with no @ in 'name' it starts working.

VS Code Version: 1.63

Okrekso commented 2 years ago

This issue was related to webpack nor than your project. To fix it I was just need to add output.devtoolNamespace to my development wepback config.

I'm closing this.