I am develop nodejs in Linux using remote-ssh.
The program works fine, but it shows unbound breakpoint.
The settings are as follows.
package.json
{
"name": "myProject",
"version": "0.1.0",
"main": "my.js"
"scripts": {
"start:debug": "sudo node my.js"
"
}
launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Program",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "npm",
"runtimeArgs": ["run", "start:debug"],
"skipFiles": ["<node_internals>/**"],
//"program": "${workspaceFolder}/my.js",
"console": "integratedTerminal",
"trace": true
// "localRoot": "${workspaceFolder}",
// "remoteRoot": "${workspaceFolder}"
}
]
}
For some reason I am running the program with sudo.
How can I modify it to enable breakpoints?