如何解决VS2008 SP1的单步问题
Visual Studio 中的调试似乎已被 SP1 破坏。 随机单步不起作用,只是开始运行。 有时断点会被忽略。 它是不可预测且无法使用的。 它通常会遇到第一个断点,但之后就完全不可预测了。
知道需要采取什么措施来纠正这种行为吗?
Debugging in visual studio seems to have been broken with sp1.
Single stepping randomly does not work and just starts to run. Sometimes breakpoints are ignored. It is unpredictable and unusable. It will generally hit the first break point but after that it is totally unpredictable.
Any idea what needs to be done to correct this behavior ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
有一个修复程序由于某种原因未包含在更新过程中:
http://code.msdn.microsoft.com/KB957912/Release/ProjectReleases.aspx?ReleaseId=1796
它对我有用,尽管有些人说他们仍然遇到同样的问题。
There is a fix which for some reason isn't included in the update process:
http://code.msdn.microsoft.com/KB957912/Release/ProjectReleases.aspx?ReleaseId=1796
It worked for me although some people say they still have the same problem.
我们使用 C# 作为语言。
微软已发现该问题。
引用自论坛:
We are using c# as a language.
The problem has been identified by microsoft.
quote from forums:
确保您正在使用调试配置进行调试,而不是发布配置。 还要确保在调试配置中禁用优化。
调试时必须关闭优化,否则可能会导致类似这样的非常不稳定的行为。
对于 C# 项目,我假设问题是关于查看标签,优化选项将位于“项目 > 属性...”的“构建”选项卡中,“常规”的最后一个选项称为“优化代码” ”。
Make sure you are debuging using the debug configuration, not the release one. Also make sure optimizations are disabled in debug configuration.
Optimizations must be off when you debug else it can lead to very erratic behaviours like these.
For C# projects, which I am assuming the question is about looking at the tags, the optimization option would be located in the "Build" tab of "Project > Properties..." Last option of "General" it's called "Optimize Code".