Visual Studio Debugger skips over breakpoints

后端 未结 13 2097
耶瑟儿~
耶瑟儿~ 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:37

    Go into Project->Properties and uncheck "Optimize Code"

    This is the case if you see code such as DataSet ds = new DataSet(); gets hit on the debugger but code like string Test = "Test"; gets skipped.

提交回复
热议问题