debugging node applications with node inspector
node-inspector does a pretty good job of debugging node applications; it utilises google chromes existing developer tools.
install v8 profiler
npm install -g v8-profiler
install node inspector
Node Inspector is a debugger interface for Node.js applications that uses the Blink Developer Tools (formerly WebKit Web Inspector).
npm install -g node-inspector
In order to run your application in debug mode:
On your terminal you should see:
Node Inspector is now available from http://localhost:8080/debug?port=5858 Debugging `app` debugger listening on port 5858
You have access to the complete set of developer tools; the left hand side displays the files in your application; the right the developer tools.
In order to debug mocha tests run:
In order to debug tap tests run: