[Node.js] – How to debug a node application ?

 By node-inspector module :

# install

$ npm install -g node-inspector

# run :

$ node-debug app.js

Debugger – Official Documentation

Follow it : https://nodejs.org/api/debugger.html

Using Intellij IDEA

  • Install Plugin NodeJS :

Screen Shot 2016-08-31 at 1.13.13 PM

  • Run the NodeJS Server in the Debugger mode :

Screen Shot 2016-08-31 at 1.17.14 PM

 

 

Leave a comment