Currently, I am again in a situation that I need to find the cause of the error, which almost never occurs when the debugger is working (maybe some race condition). The only thing I can find is find:
- Add debugging fingerprints and assertions to code that tells me what happens without a debugger.
- Go through the code and think through each line and possible side effects that may occur.
All in all, this is very frustrating. What are your strategies and experiences with such errors?
Edit: I am using Visual C ++ 2005, but I think this question applies to many (all) languages and development environments.
language-agnostic debugging heisenbug
Björn pollex
source share