Or use tests and/or a debugger. Which gives you all the listed benefits w/o an additional dependency.
Yeah, the amount of wasted hours with 1960's teletype debugging.
Ah but servers and embedded, that is why telemetry, execution traces, and debugger controlled action points exist.
Different tools for different cases. Debuggers are great for a snapshot in time but print statements are better for seeing the execution flow.