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

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

问题描述

我的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调试器跳过断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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