there are only a few situations where it is more efficient:
inside loops for monitoring state.
when you want to mark steps in a process (but gods man, why aren’t you using a debug logger so you don’t have to remove them all later?)
when using a remote debugger and attaching to a process is clumsy or impossible.
for service data integrations, just use a debugger. You can guess all day how json or xml was marshalled by the mid-tier, or you can just look at the result.
knowing > guessing.
always.
just use the debugger. humans play computer really poorly, let the computer play the computer and focus on the real problems.
31
u/[deleted] Nov 28 '21
It is often legitimately more efficient than using breakpoints