Bootcamp
Searchโ€ฆ
Bootcamp
Welcome to Bootcamp!
๐Ÿ› 
Logistics
๐Ÿ“š
General Reference
๐Ÿž
Projects
0: Language and Tooling
0.0: Module 0 Overview
0.1: New JS Syntax
0.2: ES6
0.3: Reading Documentation
0.4: JS Object as Tally
0.5: Advanced Git
0.6: Nodemon
0.7: Thunder Client
0.8: JS Promises
0.9: VSCode Node Debugger
0.10: Introduction to Classes
0.ICE: In-Class Exercises
1: Frontend Basics
๐ŸŒˆ
CSS
2: Backend Basics
3: Backend Applications
4: Backend Structure
5: Full-Stack Applications
6: Frontend Infrastructure
7: React
8: Advanced React
9: Advanced Topics
๐Ÿงฎ
Algorithms
๐Ÿ’ผ
Interview Prep
โ˜บ
User Experience
Powered By GitBook
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:

โ€‹https://itnext.io/the-absolute-easiest-way-to-debug-node-js-with-vscode-2e02ef5b1badโ€‹
โ€‹https://code.visualstudio.com/docs/nodejs/nodejs-debuggingโ€‹
โ€‹https://github.com/microsoft/vscode-recipes/tree/master/nodemonโ€‹

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.
Previous
0.8.3: Async/Await
Next
0.10: Introduction to Classes
Last modified 2mo ago
Copy link
Contents
Setup
Project Code
Run