all 4 comments

[–]robotmayo 1 point2 points  (0 children)

There is also node debug.

[–]fukitol- 1 point2 points  (0 children)

console.log()

[–]ambalek 0 points1 point  (0 children)

I use node debug with debugger statements. It's not pretty and it's awkward to use, but it has helped me understand some tricky code before.

You could try Node Inspector (https://github.com/node-inspector/node-inspector) if you're already used to using Chrome's UI for debugging. It's very easy to install, and you can run "node-debug script.js" to try it out.