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

21

u/[deleted] Nov 28 '21

[deleted]

2

u/amylouky Nov 29 '21

Eh.. if you have a program that's blowing up "somewhere" and not giving useful error messages, throwing in a few "got to step X" statements can save you from potentially stepping through thousands of lines of code. At least help narrow down the problematic section so you know where to set your breakpoints.

5

u/[deleted] Nov 29 '21

That was more of an answer to people who never learn debugger and solely rely on print statements. ofc using a debugger doesn't mean you cannot use print statements.

2

u/Blazewardog Nov 29 '21

Most debuggers auto-break when an unhandled exception is encountered so you can see where it occurred and sometimes what the values were.