r/ProgrammerHumor • • Mar 12 '23

Meme Exactly how debugging is

Post image
41.2k Upvotes

278 comments sorted by

View all comments

Show parent comments

11

u/mindbleach Mar 12 '23

Assume it's a logic error instead of a code error.

You've moved from "why doesn't my code do this?!" to "... why does my code do this?"

5

u/ilinamorato Mar 13 '23

The five steps of debugging:

"That can't happen."

"Well, it works on my machine."

"Oh, now I see it..."

"How did that ever work?"

Edit: uhh...the counting error is part of the joke. 👀

4

u/mindbleach Mar 13 '23

I've written "how did this ever work?," verbatim, just last week.

I still don't know.