Did you know tools like Node Inspector or Iron Node can be used to debug your node.js code?

Using Node Inspector as an example ( npm install -g node-inspector ), instead of running:

node index .js

You can run this instead:

node -debug index.js