Last active
August 29, 2015 14:22
-
-
Save guillermoroblesjr/2553cdce2230273e5a26 to your computer and use it in GitHub Desktop.
Running node-inspector to debug Node.js apps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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