为什么微软的Visual C#2008 Express Edition的调试器随机退出? [英] Why does Microsoft Visual C# 2008 Express Edition debugger randomly exit?

查看:130
本文介绍了为什么微软的Visual C#2008 Express Edition的调试器随机退出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写在Microsoft Visual C#2008 Express Edition的一个多线程的Windows应用程序。近日,调试器已经有异常表现。

I am writing a multi-threaded Windows application in Microsoft Visual C# 2008 Express Edition. Recently, the debugger has been acting strangely.

虽然我使用的F10单步跳过行的代码,有时它会解释我的步过(F10)命令就像一个继续命令(F5),然后程序会恢复运行和调试会话将被完成。

While I am Stepping Over lines of code using the F10, sometimes it will interpret my Step Over (F10) command just like a Continue command (F5) and then the program will resume running and the debugging session will be done.

有谁知道为什么出现这种情况? ?在什么情况下,步过在调试器停止命令结果

Does anyone know why this happening? In what circumstances can the Step Over command result in the debugger stopping?

这不是与代码的问题正在调试:它不只是发生在特定的代码行。它发生在一个随机线每个I运行调试时间是不同的。

It's not a problem with the code being debugged: it doesn't just happen on particular lines of code. It happens on a random line that is different each time I run the debugger.

这不是我的键盘一个问题:同样的事情发生时,我只需点击步过调试工具栏。

It's not a problem with my keyboard: the same thing happens when I just click Step Over in the Debug toolbar.

这可能是我在程序的其他线程的一个问题。也许它们中的一个随机做一些具有中断调试的副作用。这可能吗?

It may be a problem with the other threads in my program. Maybe one of them is randomly doing something that has a side effect of interrupting the debugger. Is that possible?

在此先感谢!

推荐答案

您应该看看这个 KB文章并考虑与其匹配的修补程序。

You ought to take a look at this KB article and consider its matching hotfix.

编辑:此修补程序解决这些类型的调试问题。不幸的是,该修补程序的源代码的变化没能回主分支和VS2010附带了完全相同的问题。这引起了它的Service Pack 1的再次修正。

the hotfix does solve these kind of debugging problems. Unfortunately, the source code changes for the hotfix didn't make it back into the main branch and VS2010 shipped with the exact same problems. This got corrected again by its Service Pack 1.

这篇关于为什么微软的Visual C#2008 Express Edition的调试器随机退出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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