ChrisWren / grunt-nodemon

Grunt task to run nodemon
MIT License
345 stars 37 forks source link

Added support for --debug-brk #14

Closed bchu closed 11 years ago

bchu commented 11 years ago

Added a debugBreak option to enable --debug-brk.

The reason you can't put --debug-brk using the args option is that node app.js --debug-brk doesn't work, whereas node --debug-brk app.js does work.

ChrisWren commented 11 years ago

How is this different from the --debug flag? I already support --debug with this option.

bchu commented 11 years ago

--debug-brk pauses execution on the first line of the script. This is necessary because (at least for node-inspector), if you set a debugger statement early on in the script's execution, it won't be caught by node-inspector (I assume that by the time node-inspector has attached itself, the script is already past the debugger statement).