Node JS Tips

Below are some helpful tips and tricks, useful when it comes to server-side JS.

Debugging in Node.js #

You can debug from the command line using:

node inspect index.js

Helpful commands with command line debugger: #

Or, to debug using a different client like chrome browser use:

node --inspect index.js

And visit chrome://inspect to visually debug the node.js app.