Hacker News new | ask | show | jobs
by unconed 297 days 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.

1 comments

Most decent debuggers have condițional breakpoints.
Not to mention tracepoints (logging breakpoints), which are functionally the same as printf but don't require compiling/restarting.
And have since the mid 1990s at least…