Sunday, June 14, 2015

Debug NodeJS Application Using Node Inspector

Debugging a NodeJS application is a complicated task. But you can use Nodeinspector for make your life easier.
We will install Nodeinspector as a grunt task.
Then install grunt-concurrent. This module is used to run multiple Grunt tasks concurrently.
Now configure grunt tasks accordingly.
Then run grunt debug command. This will run your application in debug mode and start node-inspector server. Command line output should be like below.
You can open you web application and debug URL. Node-inspector will only work on browsers that use the Blink engine, such as Google Chrome or Opera. Therefore it's better to go with above browsers.
Download Source Code from GitHub.

No comments:

Post a Comment