I am trying to set up VSCode to debug an npm script.
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch via NPM",
"runtimeExecutable": "npm",
"runtimeArgs": ["run-script", "test"],
"port": 9229
}
]
}
But I am getting this error:
Cannot connect to runtime process, timeout after 10000 ms - (reason: Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:9229).
There's a known bug in 2.0.1-beta.31 for node functions. Please try adding "NODE_OPTIONS": "--inspect=5858"
to your local.settings.json file as a workaround.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With