Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save toriaezunama/f4df1d9e8e7c98b7422655d8404e3d78 to your computer and use it in GitHub Desktop.
Save toriaezunama/f4df1d9e8e7c98b7422655d8404e3d78 to your computer and use it in GitHub Desktop.
How to debug node js with nodemon and chromedev tools
# Chrome
chrome://inspect/
Click: "Open dedicated DevTools for Node" link
# index.js
...
debugger; // stop here
...
# node
node --inspect src/index.js
# nodemon
nodemon --inspect-brk src/index.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment