Dunno where else to ask this because it's not quite a programming question. Like the title says, how do I debug a rare / unreproducible bug? My application is having some weird behaviours. It sometimes crashed and went back to Windows and displayed the usual error message with those send / don't send button (you know what I'm talking about), yet sometimes it would run normally. Also because the application needed to be run at least for one whole day, I also needed the application to be robust. And there's one more bug that would happen when I tested it to be run for 1 whole day. It would make go black. I'm quite sure that it's not a screen saver / hardware safe mode issue because when I pressed CTRL+ALT+DEL, the task manager shows up. So, can anybody help me here? How do you usually detect a bug that happens randomly like this? How do you usually test for an application robustness? Thanks in advance.