Hacker News new | past | comments | ask | show | jobs | submit login

maybe you're on a test server (no GUI) and for whatever reason you also don't want to remote debug with node-inspector, you want it all quick and dirty via ssh ;)

Python's "baked in" command line debugger that you get via `import pdb; pdb.set_trace()` is awesome for this kind of quick and dirty ssh debugging so if you're looking for inspiration on how node's command line debugger should work, check it out. I always miss python's pdb when working with JS or PHP or... anything else.




I believe you could use SSH's -L flag to forward a port from the server, so you could run `node --inspect ...` on the server and use Chrome on your local machine.


<3 pdb and ipdb.

When working in ruby, check out binding.pry




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: