debugging - VSCode node.js debug using runtimeArgs -
i trying setup launch config nodejs app uses nodemon. have valid working nodejs configuration, trying use custom commands package.json file, not successful in.
this here launch.json file
{ "version": "0.2.0", "configurations": [ { "type": "node", "request" : "launch", "name": "launch program", "program": "${workspaceroot}/app.js", "runtimeargs": [ "run-script", "start" ], "protocol": "inspector", "console": "integratedterminal" } ], "compounds": [] }
this here script section of package.json file:
"scripts": { "start": "nodemon app.js", "inspect": "nodemon --inspect-brk ./app.js" },
if run nodemon --inspect-brk ./app.js
command directly terminal works , opens in chrome devtools expected.
when run config vscode error:
error: cannot find module '/users/jeff_mba/desktop/nodejs-debugging/run-script'
i have nodemon install globally.
could me fix or idea why not working?
Comments
Post a Comment