Closed DamienCassou closed 1 week ago
Hey, I don't know how to configure source maps and paths in vscode-js-debug
but what you can try is dape
s own path substitute mechanism with prefix-local
and prefix-remote
, it's designed to solve tramp
debugging so it currently it only supports one substitution rule. (I am open for extending this functionally if it's needed)
js-debug-node-attach prefix-remote "/(rsc)/" prefix-local "/home/cassou/myproject/"
Thank you for your help @svaante. Replacing "/(rsc)/" didn't but but I managed to make it work with:
js-debug-node-attach :port 9230 prefix-local "/home/cassou/Documents/myproject/" prefix-remote "/home/cassou/Documents/myproject/webpack:/@me/country/"
Do you see a way to make that simpler? Should we close the PR?
Seams like we can close the PR, would like to improve the prefix-* documentation.
As I reported in https://github.com/microsoft/vscode-js-debug/issues/2027, I can't manage to make dape recognize the paths sent by the server which look like this:
This particular file is in fact in
/home/cassou/myproject/src/app/page.jsx
.Do you know of any way to configure dapDebugServer.js to return the proper paths? Should I instead override some methods of dape.el?