如何解决VS2008 SP1的单步问题

发布于 2024-07-05 06:54:37 字数 142 浏览 5 评论 0原文

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

贱人配狗天长地久 2024-07-12 06:54:38

有一个修复程序由于某种原因未包含在更新过程中:

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.

野稚 2024-07-12 06:54:38

我们使用 C# 作为语言。

微软已发现该问题。

引用自论坛:

我们已经确定了此问题的根本原因,目前正在研究解决方案。 对于由此给您带来的不便,我们深表歉意。 一旦我们有解决方案,我们会立即通知您。 同时,如果我们发现任何解决方法,我们会将其发布在这里。

We are using c# as a language.

The problem has been identified by microsoft.

quote from forums:

We have identified the root cause of this issue and are currently working on a solution. We apologize for the inconvenience that this is causing you. We will let you know as soon as we have a solution. In the mean time, if we discover any workrounds, we will post them here.

入怼 2024-07-12 06:54:37

确保您正在使用调试配置进行调试,而不是发布配置。 还要确保在调试配置中禁用优化。

调试时必须关闭优化,否则可能会导致类似这样的非常不稳定的行为。


对于 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".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文