Skip to content
Design Corner Knowledge Base ← Back to designcorner.co.ke
Knowledge Base

Software and Development

Heisenbug

1 min read Updated November 10, 2026

Definition A Heisenbug is a software bug that seems to vanish or change when you try to study it.

What it is

The name is a joke on the Heisenberg uncertainty principle. Adding debugging code or running in a debugger changes timing or memory, so the fault no longer appears. Such bugs are common in programs doing many things at once.

Why it matters for your business

They are costly because they are hard to reproduce, so fixes take longer. Customers may report faults that your developer cannot see.

Real-world example

A shop's checkout fails once in fifty orders, but every test run passes, so the developer adds detailed logging to catch it live.

Design Corner tip

Ask your developer to turn on error logging in production so rare faults are recorded when they happen.