Answer the question
In order to leave comments, you need to log in
How to debug two processes in VS code?
There is a main process and child with ws servers. I launch the child through child_process fork.
Debugger settings:
"configurations": [
{
"name": "Launch via NPM",
"type": "node",
"request": "launch",
"cwd": "${workspaceRoot}/server",
"runtimeExecutable": "npm",
"runtimeArgs": [
"run-script",
"start:debug"
],
"port": 5858
}
]
"start:debug": "npm run build && node --nolazy --inspect-brk=5858 src/app.js"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question