microsoft / vscode-js-debug

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

Replace ${webroot} after debug session is launched along with workspaceFolder #240

Closed connor4312 closed 4 years ago

connor4312 commented 4 years ago

See https://github.com/microsoft/vscode-js-debug/issues/239

connor4312 commented 4 years ago

To verify:

  1. Follow the same steps here https://github.com/microsoft/vscode-js-debug/issues/215#issuecomment-580394676
  2. But set the debug type to chrome instead of pwa-chrome, make sure you have debug.chrome.useV3 on, and explicitly add:
"sourceMapOverrides": {
    "webpack://?:*/*": "${webRoot}/*",
    "webpack:///./~/*": "${webRoot}/node_modules/*",
    "meteor://💻app/*": "${webRoot}/*",
  }
  1. Verify that you can still hit the App.tsx BP