Skip to content

Heisenbug

Medium — good to knowGeneral Dev

ELI5 — The Vibe Check

A bug that disappears when you try to find it. Named after Heisenberg's uncertainty principle — the act of observing (debugging) changes the behavior. Add a console.log? Bug gone. Remove it? Bug's back. Maddening.

Real Talk

A Heisenbug is a software bug that seems to disappear or change behavior when one attempts to study it. This often occurs with race conditions, timing-dependent bugs, or issues affected by debugging overhead.

When You'll Hear This

"It's a Heisenbug — works fine in debug mode but crashes in production." / "Adding logging made the Heisenbug disappear."

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