Bootcamp
Search…
📅
Course Schedule
0: Language and Tooling Teaching Guide
1: Frontend Basics Teaching Guide
2: Backend Basics Teaching Guide
3: Backend Applications Teaching Guide
4: Backend Structure Teaching Guide
5: Full-Stack Applications Teaching Guide
6: Frontend Infrastructure Teaching Guide
7: React Teaching Guide
8: Advanced React Teaching Guide
9: Advanced Topics Teaching Guide
🧮
Algorithms Teaching Guide
💼
Interview Prep Teaching Guide
☺
User Experience Teaching Guide
0.9: VSCode Node Debugger

Setup

Project Code

Create a debug script in package.json so you can easily run nodemon with debugging enabled.

package.json

1
"scripts": {
2
"debug": "nodemon --inspect index.js"
3
}
Copied!

Further Reading:

Run

  1. 1.
    Open the VSCode integrated terminal.
  2. 2.
    Attach the debugger.
  3. 3.
    Run your server.
  4. 4.
    Open the debugger tools.
  5. 5.
    Set a breakpoint.
Last modified 2mo ago
Copy link