Visual Studio Debugger 跳过断点 [英] Visual Studio Debugger skips over breakpoints

查看:41
本文介绍了Visual Studio Debugger 跳过断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在调试单元测试时,我的 Visual Studio 2008 IDE 以一种非常奇怪的方式运行:我有一个断点,当我点击它然后尝试按 F10 单步执行时,测试结束.如果我在被测试的方法中的每一行都设置断点,我最终会随机出现一个,而不是下一行的下一个.在干净的系统重新启动后,我已经清理并重建了解决方案.该行为仍然存在.有没有其他人经历过这个并得出结论.

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 concludes. If I Set breakpoints on every line inside the method being tested I will end up at a random one, not the next one on the following line. I have cleaned and rebuilt the solution after a clean system restart. The behavior persists. Has anyone else experienced this and come to a conclusion.

这个测试只使用了主执行线程(没有创建额外的线程)

This test only used the main execution thread (no additional threads are being created)

推荐答案

发布了一个 VS2008 SP1 修补程序,解决了许多调试问题.知识库文章在这里,修补程序下载在这里.

There was a post VS2008 SP1 hotfix released that solves a number of debugging problems. The KB article is here, the hotfix download is here.

更新:修补程序下载位置已停用,我不知道其他下载位置.如果你找到了,请编辑这篇文章.

UPDATE: the hotfix download location was retired, I don't know of an alternative download location. Please edit this post if you find one.

这篇关于Visual Studio Debugger 跳过断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆