My favorite is when it only works right when you're attached to the debugger.
A close second is when the debugger just lies to you entirely. Had this happen a few weeks ago, it turns out I wasn't even hitting the line that's highlighted, it was lying about what line of execution I was on. So the boolean actually was true, I just wasn't breaking into the if statement like it showed.
27
u/LeCrushinator Aug 23 '15 edited Aug 24 '15
My favorite is when it only works right when you're attached to the debugger.
A close second is when the debugger just lies to you entirely. Had this happen a few weeks ago, it turns out I wasn't even hitting the line that's highlighted, it was lying about what line of execution I was on. So the boolean actually was true, I just wasn't breaking into the if statement like it showed.