Skip to content

Schroedingers Bug

Easy — everyone uses thisVibecoding

ELI5 — The Vibe Check

A Schrodinger's bug is a bug that disappears when you try to observe it. Add a console.log to debug it? Gone. Open the debugger? Works perfectly. Remove the logging? Broken again. The bug exists in a quantum superposition of 'broken' and 'working' and collapses to 'working' the moment anyone's watching. Usually caused by timing issues, race conditions, or the universe having a sense of humor.

Real Talk

A Schrodinger's bug (or heisenbug variant) is a defect that changes behavior when debugging tools are introduced, typically due to timing-sensitive issues. Adding logging or breakpoints changes execution timing, masking race conditions, concurrency bugs, or optimization-dependent behavior. These are among the hardest bugs to diagnose and often require careful reasoning rather than direct observation.

When You'll Hear This

"It's a Schrodinger's bug — works perfectly in the debugger, crashes in production." / "The console.log fixed it because it changed the timing. That's not a fix, that's a Schrodinger's bug."

Made with passive-aggressive love by manoga.digital. Powered by Claude.