Skip to content

Instantly share code, notes, and snippets.

@dsasser
Created October 24, 2022 21:23
Show Gist options
  • Save dsasser/90420cbaccaf9b9ec559434ebb75207a to your computer and use it in GitHub Desktop.
Save dsasser/90420cbaccaf9b9ec559434ebb75207a to your computer and use it in GitHub Desktop.
How to setup node debugging in vscode for vets-website

How to setup node debugging in vscode for vets-website

  1. Set a breakpoint somewhere
  2. setup auto attach: always so any node command will allow debugging automatically
  3. Open a Javascript Terminal in vscode
  4. Run the yarn watch command (or whatever script you are running)
  5. Open the browser links FROM INSIDE the javascript terminal, or: use the Debug: Open Link command, and enter the destination url there.
  6. Enjoy the debugging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment