this post was submitted on 25 May 2026
715 points (97.6% liked)

Programmer Humor

31585 readers
1157 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 3 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Willem@kutsuya.dev 3 points 2 days ago (1 children)

printing to a console could enforce a flush, sync thread or other shenanigans.

usually setting a breakpoint would have the same effect and gives me the suggestion of a threading issue.

[โ€“] atopi@piefed.blahaj.zone 3 points 2 days ago

the problem wasnt that the print statement fixed the bug

the problem was that even if i removed the print statement and added a comment on that line, the bug would also be fixed