News for hackers. Stuff that matters.
Re:Ask HN: Do you use print() debugging? by rinrae on Tuesday November 08, 2011 @04:35AM (#3210089)
in general I don't think it makes that much of a difference. find what works for you.

(ruby-debug, for example, doesn't feel like a big, heavyweight sledgehammer, so you might just wanna try it out.)

for me, it depends on the complexity of the problem.

when there's something wrong and I have absolutely no idea where to start (which is a bad sign anyway :) ), using the debugger is easier than scattering print statements all over my code. but when one print() will probably tell me what the problem is, I don't bother using the debugger.

(… and thanks for reminding me to learn how to use ruby-debug.)

There are no comments on this comment yet.