Brent Keller

Debugging node.js in VS Code

You can easily debug node.js code that's running locally in VS Code.

Attach to a running process

  1. Run your node app
  2. In vscode select "Attach to node" from command palette
  3. Select the process for your app, it will attach and you can hit breakpoints, etc.

Reference: https://code.visualstudio.com/docs/nodejs/nodejs-debugging

© 2023 Brent Keller