Talk:heisenbug

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Current definition: "A software bug which fails to manifest itself during debugging; a problem that cannot be diagnosed in the debugger because it does not occur in that environment."

This is inaccurate. Going by both FOLDOC and Wikipedia definitions:

  • Using a debugger is only one way of attempting to diagnose a bug, and it might be a different kind of debugging method under which the bug fails to manifest, e.g. adding statements to generate debugging output to the code, or performing white-box or grey-box testing.
  • It needn't fail to manifest at all to be a heisenbug; manifesting differently during debugging is another possibility, though I suppose the implication is that this different manifestation still makes it harder to diagnose.
  • Even if it is under a debugger that the bug fails to manifest, it is not necessary that it cannot be diagnosed in the debugger; it may be the case that the debugger can be used in such a way as to figure out why the bug was failing to manifest in the debugger (I've done it myself).

As such, I'm amending the definition. I'll do away with the second part of the definition for now as it doesn't seem to be really needed and I'm not sure how best to rewrite it, but if anyone else wants to have a go at rewriting it to be more accurate then please feel free. — Smjg (talk) 13:26, 24 June 2020 (UTC)[reply]