If statement weirdness in Visual Studio 2008

前端 未结 6 972
梦如初夏
梦如初夏 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:46

    Just adding a "me too" here on funky highlighting of code. I'm running VS2008 with C#. I have a Windows Forms project referencing a class library in another project and I'm debugging both line by line. "At some point" the yellow highlight in debug was anywhere from 14 to 20 lines off from the actual line being executed.

    I closed VS, opened the directories for both projects, deleted everything from bin/Debug and obj/Debug in both directories, then restarted VS. On recompile and stepping through debug, everything was fine again.

    I don't know if the issue was in a .manifest, .pdb, or perhaps a .Cache file. It doesn't matter. Blow um all away and it'll be fine.

    FWIW, Googling was nearly useless except that it returned this SO thread. All other hits were about issues with VC++ templates and VS2005, where a SP fixed that problem. This is not the same issue.

提交回复
热议问题