Debugging Express with node-inspector

Debugging the Express part of your MEAN application can be a complicated task. Fortunately, there is a great tool that solves this issue called node-inspector. Node-inspector is a debugging tool for Node.js applications that use the Blink (a WebKit Fork) Developer Tools. In fact, developers using Google's Chrome browser will notice that node-inspector's interface is very similar to the Chrome Developer Tools' interface. Node-inspector supports some pretty powerful debugging features:

  • Source code files navigation
  • Breakpoints manipulation
  • Stepping over, stepping in, stepping out, and resuming execution
  • Variable and properties inspection
  • Live code editing

When running node-inspector, it will create a new web server ...

Get Web Application Development with MEAN now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.