I have found this very useful nodejs module: node-inspector. Node Inspector is a debugger interface for nodeJS using the WebKit Web Inspector.
You install node-inspector with the following command:
> npm install -g node-inspector
Start your application in debug mode like this:
> node –debug index.jsThen start node-inspector (in my case default port 8080 was already in use so I specified 9999 as my port.
> node-inspector --web-port=9999Then open you chrome browser and point to the address that was printed by inspector then it started (in my case, http://0.0.0.0:9999/debug?port=5858 but windows did not like zeros so I modified address to the following value: http://127.0.0.1:9999/debug?port=5858)