this post was submitted on 08 Oct 2025
269 points (99.6% liked)

Programmer Humor

28535 readers
1184 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 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] meme_historian@lemmy.dbzer0.com 56 points 3 months ago* (last edited 3 months ago) (3 children)

It's a race condition that doesn't get triggered when you run the program through a debugger or with copious amounts of debug log output ๐Ÿ’€

[โ€“] Lojcs@piefed.social 24 points 3 months ago* (last edited 3 months ago)

Or something about packaging. Or I used a function that has a different implementation for debug mode out of its intended purpose. Or

[โ€“] bandwidthcrisis@lemmy.world 19 points 3 months ago

AKA heisenbug.

Observing it changes the outcome.

[โ€“] Matty_r@programming.dev 2 points 3 months ago

When adding a debug print statement changes the locking of a thread and the problem doesn't occur..