Visual Studio Debugger skips over breakpoints

后端 未结 13 2092
耶瑟儿~
耶瑟儿~ 2020-11-30 09:20

My Visual Studio 2008 IDE is behaving in a very bizarre fashion while debugging a unit test: I have a breakpoint and when I hit it and then try to step with F10 the test con

13条回答
  •  醉梦人生
    2020-11-30 09:49

    This behaviour happens if you debug the release build (since lines are optimized away).

    It also happened to me in the past if by accident I'm debugging an older exe somewhere else (as set by the project config), instead of the most recently build one ;^)

提交回复
热议问题