Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M1437

Bohrbug

Bohrbug
TechnicalHigh supportPhysics
Included
account_tree

Updated 2026-07-30

Loading revision record…

Summary

In computer programming jargon, a heisenbug is a software bug that seems to disappear or alter its behavior when one attempts to study it. The term is a pun on the name of Werner Heisenberg, the physicist who first introduced the uncertainty principle, and it is a reference to the observer effect, w…

Definition

In contrast to the Heisenbug, this refers to stable, reproducible bugs. Just like Bohr's atomic model, the position is determined; whether you observe it or not, it is there. Scaffold use: Prioritize deterministic issues. When solving complex crises, first address those 'certain' and 'obvious' Bohrbugs. Don't go after the elusive Heisenbugs right away, as that will drain your energy.

How to use

Prioritize deterministic issues. When solving complex crises, first address those 'certain' and 'obvious' Bohrbugs. Don't go after the elusive Heisenbugs right away, as that will drain your energy.

Mechanism

Bohrbugs are stable and reproducible; their trigger conditions are deterministic, and debugging is not disturbed by observation. In contrast, Heisenbugs change or disappear with debugging intervention (e.g., adding logs). Fixing deterministic bugs first yields quick returns and reduces system uncertainty.

Practice

In progress 0/4

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

Cases

  • Null pointer out-of-bounds is a typical Bohrbug, appearing with fixed input; in contrast, occasional crashes due to race conditions are more like Heisenbugs.

Common pitfalls

  • Allocating effort evenly and chasing elusive intermittent bugs first; mistaking all bugs as reproducible and repeatedly adding logs, which alerts the bug.
Sources

Source support: Explicit

References currently contain only Wikipedia links; primary sources still need review.

  • link
    en.wikipedia.orghttps://en.wikipedia.org/wiki/HeisenbugZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS