The Heisenbug

A heisenbug is a bug that vanishes the instant you try to observe it. You add one print statement and the code behaves like an angel. You remove the print statement and it returns, immediately, to a life of crime.

The bug knows you are watching. The bug has read the physics. There is nothing in the manual for this, and there is no duck big enough.

No comments yet — be the first.

Leave a comment

Comments are welcome — disagreement included, in the spirit of free speech. Come in good faith and keep it civil. Cruelty, spam, and bad-faith trolling get moderated out.