How to debug Node.js applications?

Sometimes, we want to debug Node.js applications.

In this article, we’ll look at how to debug Node.js applications.

How to debug Node.js applications?

To debug Node.js applications, we can use the node-inspector package.

We install it with

npm install -g node-inspector

Then we run

node-debug app.js

to start app.js with the node-inspector debugger.

Conclusion

To debug Node.js applications, we can use the node-inspector package.