You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I am having trouble debugging a Node.js process launched via PM2. Essentially, I am launching a Node.js process and exposing a debugging port using the --inspect={some_port} flag.
I can attach to that process with ease, but I can’t set breakpoints or pause the process. When I try to set a breakpoint, I just see an exclamation mark on that line and breakpoint just doesn't stop execution.
When I try to pause the process, I see a dialog pop-up asking ‘Which thread?’ with no threads available. However, I know for sure that I am attached to the right process and DAP is working because I can see logs in the REPL.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! I am having trouble debugging a Node.js process launched via PM2. Essentially, I am launching a Node.js process and exposing a debugging port using the
--inspect={some_port}
flag.I’ve managed to boil it down to the most minimal example repo possible:
https://github.com/FiNEk/ts-pm2-nvimdap-problem
I can attach to that process with ease, but I can’t set breakpoints or pause the process. When I try to set a breakpoint, I just see an exclamation mark on that line and breakpoint just doesn't stop execution.
When I try to pause the process, I see a dialog pop-up asking ‘Which thread?’ with no threads available. However, I know for sure that I am attached to the right process and DAP is working because I can see logs in the REPL.
I am using LazyVim, so the nvim-dap configuration looks like this:
https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/plugins/extras/dap/core.lua
https://www.lazyvim.org/extras/dap/core
With following additions to setup node debugging.
I have no idea how to even approach this problem, so any help is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions