3 ms·
I really don't understand this. Whenever I try to print debug, I end up missing the mark on my first print statement(s). If I just set a breakpoint, I can jum
by gnud 5y ago
I really don't understand this.
Whenever I try to print debug, I end up missing the mark on my first print statement(s).
If I just set a breakpoint, I can jump back in the stack, or step forwards, so I can easily find the real place the error happens.
Of course I sometimes still print debug - when using languages with bad debuggers, languages where I don't know the tooling, languages with horrible control flow (javascript callbacks), or constrained environments, printing/logging is sometimes the best you can do. But that doesn't mean it's the best there is.