4 ms·
I still don't understand how, with a properly configured debugger, manually typing print statements is better than clicking a breakpoint at the spot you were go
by kossae 1y ago
I still don't understand how, with a properly configured debugger, manually typing print statements is better than clicking a breakpoint at the spot you were going to print. Context overload might be an issue, but just add a 'watch' to the things you care about and focus there.
- zeta0134 1y agoTwo situations immediately come to mind, though the second is admittedly domain specific: 1. If I actually pause execution, the thing I'm trying to debug will time out some network service, at which point trying to step forward is only going to hit sad paths 2. The device I'm debugging doesn't *have* a real debugger. (Common on embedded, really common for video games. Ever triggered a breakpoint in a graphics shader?) Here I might substitute "print" for "display anything at all" but it's the same idea really.
- tretiy3 1y agowhile inspecting some code inside loop, i prefer to put print and see all iterations at once in my screen, instead of countless clicking "continue" in debugger.