If statement weirdness in Visual Studio 2008

前端 未结 6 994
梦如初夏
梦如初夏 2020-12-30 08:09

I\'ve come across a problem so strange, that I\'ve recorded my session because I didn\'t think anyone would belive me.

I came across a bug that seems to be at very f

6条回答
  •  独厮守ぢ
    2020-12-30 08:45

    My guess is that something odd is happening at deployment, so the pdb is out of sync with the actual code. If you use logging instead of the debugger to work out what's going on, I suspect you'll see more sensible behaviour. I doubt that it's the CLR itself behaving weirdly with an "if" - it's much more likely to be a debugger/runtime inconsistency.

提交回复
热议问题