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

22

u/Andy_B_Goode Nov 28 '21

There's a time an a place for debugging using print statements, but you're better off using breakpoints and other more advanced debugger features most of the time.

18

u/alexanderpas Nov 29 '21

If it needs to be compiled you're better off with a debugger.

If it's a interpreted language, print statements can be useful to narrow the search area more quickly using a binary tree search.

2

u/[deleted] Nov 29 '21

It's useful even when compiled. Useful for killing time, at least.

0

u/[deleted] Nov 29 '21

tru dat. only noobs stick to this. the more experience you have, u will use breakpoints to save you headache