3 ms·
I think that print debugs are a great first step. The problem are people who can't use a proper debugger, but that's not the same as saying print debugs are alw
by jghn 6y ago
I think that print debugs are a great first step. The problem are people who can't use a proper debugger, but that's not the same as saying print debugs are always bad.
I tend to use print debugs in two cases. One is when I'm pretty sure I know what the problem is, and it seems trivial. It's often faster to just confirm & fix that way. The other is when I am not even sure where to start, so I put a few canary prints here and there based on hunches until I start to narrow in mentally on what the issue might be.
Beyond that, it's a proper debugger.