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: #
s
: step to next linesb()
: set breakpoint, takes line number as parameter
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.
- Next: Error Handling in Node.js
- Previous: GCloud Commands