Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't get the usefulness/effectiveness print debugging. I work in Ruby and JavaScript and I find it much more efficient to know the whole state of the world and the objects in it at a certain place, because I generally know where the problem may be. For example I use pry in ruby and the debugger; statement in JS.

Maybe it is just the way my brain works? I'd rather stop and see what I need behind a condition than have to filter through a lot of possibly unformatted console output.



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

Search: