A simple NodeJS App debugging example in VS Code using Nodemon.
Note: Feel free to customize .vscode/launch.json
and ./nodemon.json
files.
yarn add nodemon --dev
Add debug
to your package.json
script section:
+ "debug": "nodemon --debug server.js",
Run Nodemon:
yarn debug
Finally, select the attach configuration before in your VS Code and go to Debug > Start debugging
F5
⚡️ Enjoy!
what about if the code is written in Typescript?