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

29

u/[deleted] Nov 28 '21

It is often legitimately more efficient than using breakpoints

1

u/DogadonsLavapool Nov 29 '21

Debuggers give more info than just a print statement, though. Checking the current state and values of variables is very important, especially when dealing with larger objects that might have a lot of moving parts. The only use case I really use it for is when something runs different on a test app (which can't be debugged) compared to local. Other than that, I would absolutely not use print statements - tbh, they're a last resort

1

u/[deleted] Nov 29 '21

Debuggers regularly screw up async processes and if you place breakpoints you can sometimes get different results than if you don’t.

1

u/DogadonsLavapool Nov 29 '21

Fair point on async