Help with remoteRoot
and localRoot
#596
Replies: 2 comments 1 reply
-
IT WORKS!!!Wow, it finally works, that was a rough time. I think that what was actually messing me up is this whole time (many hours), I was trying to set a breakpoint in my Presumably, there are a lot of {
"version": "0.2.0",
"configurations": [
{
"address": "localhost",
"name": "Attach to Remote",
"port": 9229,
"request": "attach",
"skipFiles": ["<node_internals>/**"],
"type": "node",
"sourceMaps": true,
"localRoot": "${workspaceFolder}",
"remoteRoot": "/app",
"outFiles": [
"${workspaceFolder}/build/**/*.js",
"${workspaceFolder}/public/build/**/*.js"
]
}
]
}
Anyway, I am going to investigate further later to isolate the specific fix in case anyone else comes across this, but I am pretty confident that it was either a bug where |
Beta Was this translation helpful? Give feedback.
-
Hi! -- # dap_vscode_js config --require("dap-vscode-js").setup({ local js_based_languages = { "typescript", "javascript", --Debug docker container local function debugDockerContainer() --launch specific debugger |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm having a rough time trying to figure out how to debug a containerized node application with nvim-dap and vscode-node2-debug. I created a minimal repo which demonstrates the problem I'm having:
https://github.com/jdevries3133/trivial_example
Basically, source maps don't seem to be working, and breakpoints set through nvim-dap don't work. I was having the same problem in VS Code too, until I realized I needed to set the
remoteRoot
andlocalRoot
settings in mylaunch.json
. After doing that, VS Code works find, but nvim-dap still doesn't work.I tried pretty hard to debug this, even cloning the
vscode-node-debug
andvscode-chrome-debug-core
repositories and throwing some console logs into them to see if thelocalRoot
andremoteRoot
values were being passed through nvim-dap into the debug adapter, and it seemed like things should have been working.Any tips for getting to the root of this problem are very much appreciated!
Update
Actually, this trivial solution is working now (probably, it always was and I was mistaken). My real use case still isn't working, so there must be a different problem I haven't isolated yet. For context, I'm trying to debug a remix.run application inside a docker container with remote debugging and this is my launch.json for that project:
Anyway, I will keep investigating
Update 2
OK, now this is so weird 🙃
If I set a breakpoint in the generated code, then continue the program, the debugger will jump to the actual source code which maps to that generated code, but I still can't set breakpoints in the source code.
Beta Was this translation helpful? Give feedback.
All reactions