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 💀
When adding a debug print statement changes the locking of a thread and the problem doesn’t occur…
Or something about packaging. Or I used a function that has a different implementation for debug mode out of its intended purpose. Or
Only thing worse is not finding the bug that only happens in release mode
Just release in debug mode, problem solved.
Try a bug that sporadically happens only in release mode, with no clear connection to anything else, only to find out years later it only happens when someone uses the microwave for too long in the break room.
“You know, we always get this error after lunch when I reheat leftover soup.”
Goddamnit Kyle!
Undocumented feature flag in a plug-in, that changes the behavior drastically when in any deployment mode.