4 ms·
The old fogeys don't rely on printf because they can't use a debugger, but because a debugger stops the entire program and requires you to go step by step. Pri
by unconed 1y ago
The old fogeys don't rely on printf because they can't use a debugger, but because a debugger stops the entire program and requires you to go step by step.
Printf gives you an entire trace or log you can glance at, giving you a bird's eye view of entire processes.
- oblio 1y agoMost decent debuggers have condițional breakpoints.
- scarface_74 1y agoAnd have since the mid 1990s at least…
- jcparkyn 1y agoNot to mention tracepoints (logging breakpoints), which are functionally the same as printf but don't require compiling/restarting.