1.

How will you debug an application in Node.js?

Answer»

The easiest way to debug an application on Node.js is through Node-Inspector. You can use it from any BROWSER SUPPORTING WebSockets. It helps multiple WAYS of debugging LIKE a profiler, livecoding, breakpoints, etc. Here's how to use node-inspector:

  • Install it using npm install -G node-inspector
  • Now, run node-debug app.js


Discussion

No Comment Found