DEV Community

Discussion on: FullStack setup (Node.js, React.js and MongoDB)

Collapse
 
pacheco profile image
Thiago Pacheco

Hi Leo,

Sorry, You should also have a new debug script in your package.json file. Add the following script to your package.json:

"debug": "nodemon --nolazy --inspect-brk=9229 index.js",

Also, update the launch.json runtimeArgs to use this new script:

"runtimeArgs": ["run-script", "debug"],

Let me know if that works for you