Re:Don't Look Down on Print Debugging
by kazinator on Saturday November 23, 2024 @10:13AM
(#42221323)
I've never been able to successfully debug anything with a conditional breakpoint or watch, in spite of knowing about these things and trying.
(Well, other than my own conditional breakpoint features built into the code, doing things like programmatically trigger a breakpoint whenever an object with a specific address (that being settable in the debugger interactively) passes certain points in the garbage collector.)
I work on a codebase daily that has multiple threads per app, and two event loops.
We have successfully sorted out how to manage both loops, and set effective breakpoints to debug efficiently. We also log extensively.
I know it’s possible because I do it every day.
OP said:
> … people who lean on print debugging often have incomplete knowledge of the immense power of modern debugging tools.
I am educated. I have a metric fuckton of incomplete knowledge in all areas of life.
You’re poking at something that wasn’t said.