Skip to content

Instantly share code, notes, and snippets.

@guillermoroblesjr
Last active August 29, 2015 14:22
Show Gist options
  • Save guillermoroblesjr/2553cdce2230273e5a26 to your computer and use it in GitHub Desktop.
Save guillermoroblesjr/2553cdce2230273e5a26 to your computer and use it in GitHub Desktop.
Running node-inspector to debug Node.js apps
# spin up node-inspector, here i'm pointing it to a specific port
node-inspector --web-port=8081
# open another terminal, start the node app with the --debug-brk option
# to create a breakpoint on line 1 of your app
node --debug-brk ./app.js
# if debugging Gruntfile.js with Windows, use:
node --debug-brk c:\Users\<username>\AppData\Roaming\npm\node_modules\grunt-cli\bin\grunt <taskname>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment