Closed TroySigX closed 1 year ago
I have a similar issue with it not being able to detect sourcemaps for mason packages. Not sure whats going on with that last error though. Whats the rest of your config?
That's all of my config for js debugger, the rest is for my other plugins
Is it because the filetype is typescript, not javascript, and vscode-js-debug doesn't support it?
Workaround for me:
Go to targets directory:
cd ~/.local/share/nvim/mason/packages/js-debug-adapter/out/src/targets/
create symbolic link for out directory here:
ln -s ../../../out out
Thanks @atmosuwiryo! So is it dap or js-debug problem?
@TroySigX I dont have much time to trace why we have a wrong path here. Sorry.
Is it because the filetype is typescript, not javascript, and vscode-js-debug doesn't support it?
This is a good question. On vscode, using a typescript file as the entrypoint works without issues, but it seems that nvim-dap-vscode-js doesn't support typescript (without ts-node loader) and is only compatible with javascript node projects.
I have the following config:
When I launch the debugger, Dap gives this error:
I am using vscode-js-debug 1.76.0