Skip to content

Instantly share code, notes, and snippets.

@petrkohut
Last active June 30, 2017 21:55
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 petrkohut/1dd6be28dfb2f158d77f to your computer and use it in GitHub Desktop.
Save petrkohut/1dd6be28dfb2f158d77f to your computer and use it in GitHub Desktop.
Debuging in Node.js

Debuging in Node.js

Install node-inspector

npm i -g node-inspector

Run node-inspector on a background

node-inspector &

Debug your app

node --debug-brk app.js

--debug-brk allows us to use breakpoints in chrome window

How to turn off running node-inspector

get latest process running on background into front

fg

list of all running jobs

jobs

put process into background

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