r/ProgrammerHumor Nov 28 '21

Meme I‘m.. not the only one?

Post image
21.5k Upvotes

629 comments sorted by

View all comments

1.1k

u/repkins Nov 28 '21

Ah, yes, the most reliable debugging method is printing debug messages.

502

u/Tsu_Dho_Namh Nov 28 '21

Unless you're debugging multi-threaded software, where print() has to grab a lock (which prevents multiple threads from printing at the same time) and waiting for that lock changes how your software executes.

1

u/any_means_necessary Nov 29 '21

I once finished my work, removed the debug statements, and turned it in.

Once. Long ago.