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!
@winuxue It's already supported via nodemon too.
Checks the following link:
microsoft/vscode#10560
Bonus:
https://github.com/Microsoft/vscode-recipes/
👍