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 --devAdd debug to your package.json script section:
+ "debug": "nodemon --debug server.js",Run Nodemon:
yarn debugFinally, 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?