How to debug child Node.JS process in VS Code?
Here is the example of the code that I\'m trying to debug:
var spawn = require(\'child_process\').spawn;
var s
Just add this to your debugger configuration file
{
"type": "node",
"request": "attach",
"name": "Attach by Process ID",
"processId": "${command:PickProcess}",
}
To attach a debugger to a Process Id. A list of processes will be prompted when you run this config., in which you can select process to which you want to attach debugger.