开发者

Step Over works unexpectedly in vs2010 during unit test debug?

开发者 https://www.devze.com 2023-02-25 23:15 出处:网络
Sometimes when I\'m debugging a unit test in vs2010, Step Over (F10) will not just step over the instruction I\'m in but just Continue (F5) to the next breakpoint or to the end of the test.

Sometimes when I'm debugging a unit test in vs2010, Step Over (F10) will not just step over the instruction I'm in but just Continue (F5) to the next breakpoint or to the end of the test.

I was wondering why this开发者_C百科 happens. When it does I usually re-run the test up to the same point, and then it doesn't Continue, it Steps Over like it should.


Install Service Pack 1, it fixes this problem. Download is here, pick the right language if you use this link. The list of SP1 fixes is here, the bug you found is in the Debugger section:

556756: Debugger randomly treats "step-into" and "step-over" procedures as a "run to completion" procedure. (http://connect.microsoft.com/VisualStudio/feedback/details/556756/debugger-randomly-treats-step-into-and-step-over-as-run-to-completion)

0

精彩评论

暂无评论...
验证码 换一张
取 消