Skip to content

Instantly share code, notes, and snippets.

@theothermattm
Created June 14, 2019 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theothermattm/1377d9f6962e4048e049f8c0363f4d40 to your computer and use it in GitHub Desktop.
Save theothermattm/1377d9f6962e4048e049f8c0363f4d40 to your computer and use it in GitHub Desktop.
Debugging w/ Node.js and Chrome

Node debugging with chrome

See this article first.

Use node --inspect

Most of the time it should give you a chrome URL. If not, go to about:inspect in chrome and you should see a target to inspect

Using mocha

Use mocha --inspect-brk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment