Node.js debugging

– Don’t use port 8080

– Run: node -debug-brk app.js

– Start node-inspector

– Visit the URL it outputs to you

– Good parts: can use ‘debugger / breakpoints’

– Bad parts: NO jasmine-node

– Bonus: heard that webstorm has a good Node debugging tool. Should check it out.

Advertisements
Standard