Debugging npm-triggered Nodemon-run Node processes in VS Code
This is a minimal demo for it.
Installation
- Fork this if you want to
- Clone it locally
npm install
Trying it out
- Open the root directory in your VS Code (e.g.
code .
)
- Hit F5 to trigger the default Launch config, or select it manually from the Debugger’s configurations dropdown and click the Run button.
- Set a breakpoint on line 4 of
server.js
- Navigate to the URL displayed in the program's terminal
-
BAM! Debugging.
You’re welcome.