dap-mode
dap-mode copied to clipboard
unable to connect to node
I am unable to get dap-mode working with node or firefox. Chrome debugging works, but is significantly more complex to configure than indicated in the documentation.
I suspect the firefox issue will be difficult to track down. Steps to reproduce existing node.js issues:
- download all three extensions manually, as described in #547 and other existing issues. unzip and set the appropriate path variables.
- attempt to launch a generic node confirmation; fails with this error:
Warning (emacs): Initialize request failed: Attribute 'program' is not absolute ('{path}'); consider adding '${workspaceFolder}/' as a prefix to make it absolute. Disable showing Disable logging
- self-written node config in launch.json with the following content:
{
"name": "NODE: loop.js",
"type": "node",
"outfiles": ["*.js"],
"runtime": "/home/matt/.fnm/aliases/default/bin/node",
"program": "/home/matt/.emacs.d/.extension/vscode/ms-vscode.node-debug2/extension/out/src/nodeDebug.js",
"request": "launch",
"file": "${workspaceFolder}/loop.js"
}
this launches but crashes immediately before debugging any code with a "module not found" error (stack seems to be hard to copy, my apologies)
I feel myself to be shooting in the dark here and would love to hear if others able to make this work. Thanks!