Re:The unreasonable effectiveness of print debugging
by wrycoder on Saturday April 24, 2021 @08:44PM
(#26929430)
Agreed. The only time I've found a debugger useful is when the print statements aren't immediately giving clarity, and cognitive dissonance is settling in.
[ Parent
| on HN ]
Re:The unreasonable effectiveness of print debugging
by porknubbins on Sunday April 25, 2021 @12:55AM
(#26930423)
I think its the same as cognitive dissonance but I always find debuggers help when my code appears to be doing something impossible- like I’ll be thinking how could if(true) ever fail then remember oh this whole function isn’t even getting called and I had fixated on the wrong place. Debuggers will sort it out faster than a bunch of print statements.