Closed DamienCassou closed 4 months ago
Describe the bug
dapDebugServer.js produces events such as:
dapDebugServer.js
{ "seq": 1484, "type": "event", "event": "loadedSource", "body": { "reason": "new", "source": { "name": "/(rsc)/src/app/page.jsx", "path": "/(rsc)/src/app/page.jsx", "sourceReference": 1615416030 } } } { "seq": 1503, "type": "event", "event": "loadedSource", "body": { "reason": "new", "source": { "name": "/home/cassou/myproject/src/app/webpack:/@me/country/src/app/page.jsx", "path": "/home/cassou/myproject/src/app/webpack:/@me/country/src/app/page.jsx", "sourceReference": 734626073 } } }
Both events refer to the same file but with different paths, none of them matching anything on my filesystem.
I've tried to use sourceMapPathOverrides to override these paths but nothing I do works. It seems https://github.com/microsoft/vscode-js-debug/issues/1597 is about a similar issue.
It would be nice to have this option better documented.
To Reproduce Steps to reproduce the behavior:
npx create-next-app@latest --use-yarn --javascript --app --src-dir
Not sure what launch config you're using, but I added some docs in the linked commit
thank you @connor4312
Describe the bug
dapDebugServer.js
produces events such as:Both events refer to the same file but with different paths, none of them matching anything on my filesystem.
I've tried to use sourceMapPathOverrides to override these paths but nothing I do works. It seems https://github.com/microsoft/vscode-js-debug/issues/1597 is about a similar issue.
It would be nice to have this option better documented.
To Reproduce Steps to reproduce the behavior:
npx create-next-app@latest --use-yarn --javascript --app --src-dir
dapDebugServer.js