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

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

问题描述

我正在Microsoft Visual C#2008 Express Edition中编写一个多线程的Windows应用程序。最近,调试器一直很奇怪。



当我在使用F10的代码行时,有时会解释我的Step Over(F10)命令,就像一个继续命令(F5),然后程序将恢复运行,调试会话将完成。



有谁知道为什么会发生这种情况?在什么情况下,Step Over命令会导致调试器停止?



正在调试的代码不是问题:它不仅仅发生在特定的代码行上。它发生在随机行上,每次运行调试器时都是不同的。



我的键盘不是问题:当我单击Step Over调试工具栏。



我的程序中的其他线程可能是一个问题。也许其中之一是随机地做一些中断调试器的副作用。有可能吗?



提前感谢

解决方案

你应该以查看此知识库文章,并考虑其匹配的修补程序。



编辑:该修补程序确实解决了这些调试问题。不幸的是,修补程序的源代码更改并没有使其返回到主分支,并且VS2010附带了完全相同的问题。这通过其Service Pack 1再次得到纠正。


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

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?

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?

Thanks in advance!

解决方案

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

EDIT: 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.

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

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