Closed bchu closed 11 years ago
How is this different from the --debug
flag? I already support --debug with this option.
--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).
Added a debugBreak option to enable
--debug-brk
.The reason you can't put
--debug-brk
using theargs
option is thatnode app.js --debug-brk
doesn't work, whereasnode --debug-brk app.js
does work.