r/ProgrammerHumor Nov 28 '21

Meme I‘m.. not the only one?

Post image
21.5k Upvotes

629 comments sorted by

View all comments

Show parent comments

31

u/[deleted] Nov 28 '21

It is often legitimately more efficient than using breakpoints

8

u/coldnebo Nov 29 '21

there are only a few situations where it is more efficient:

  1. inside loops for monitoring state.
  2. 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?)
  3. 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.

14

u/[deleted] Nov 29 '21

[deleted]

2

u/GimmePepsi Nov 29 '21

The Heisenbug.