Remix.run Logo
unconed 6 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.

oblio 6 days ago | parent [-]

Most decent debuggers have condițional breakpoints.

jcparkyn 5 days ago | parent | next [-]

Not to mention tracepoints (logging breakpoints), which are functionally the same as printf but don't require compiling/restarting.

scarface_74 5 days ago | parent | prev [-]

And have since the mid 1990s at least…