2 ms·
I remember hearing stories about how certain bugs would only show up in the release build, but not the debug build. After lots of debugging, they find out it's
by colejohnson66 10y ago
I remember hearing stories about how certain bugs would only show up in the release build, but not the debug build. After lots of debugging, they find out it's because the compiler initialized variables to 0 ("null") in debug mode, but not release mode.
- majewsky 10y agoClassical https://en.wikipedia.org/wiki/Heisenbug https://en.wikipedia.org/wiki/Heisenbug
- TorKlingberg 10y agoYes, that is quite common in embedded systems. In practice you often end up either: 1) Shipping the debug build, because it's been tested and it's fast enough anyway. 2) Always building the release build, because the debug build doesn't work. All those DEBUG_ASSERT's sit unused.