29
May 11

node-inspector and the missing –start-brk option

Quick tip to anyone having trouble finding the right way to start a node-inspector debugging session with an initial break point. Lot’s of youtubes and how-to’s mention a –start-brk=file.js option. If you try and actually use it, it doesn’t work. The correct way to do this now is:

node-inspector &
node --debug-brk --debug server.js 

Head to http://0.0.0.0:8080/debug?port=5858 to find your app nicely stopped on the first line.

Happy noding!