VC ++ 2010调试器在“开始调试"处挂起. [英] VC++ 2010 Debugger hangs at "Start Debugging"

查看:247
本文介绍了VC ++ 2010调试器在“开始调试"处挂起.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.在我尝试的任何项目(包括简单的Hello World)上按开始调试"时,Visual C ++ 2010调试器将挂起.当我按"Stop Debugging"(停止调试)时, Visual Studio挂起几秒钟,然后显示以下错误消息:

Hello. My Visual C++ 2010 debugger hangs when I press "Start Debugging" on any project I try, including a simple Hello World. And when I press "Stop Debugging" Visual Studio hangs for a few seconds and then shows the following error message:

"调试器无法终止一个或多个进程:

"The Debugger was unable to terminate one or more processes:

[2880] test.exe:调试器仍附加到该进程,或者该进程当前未执行用于调试的代码类型."

[2880] test.exe: The debugger is still attaching to the process or the process is not currently executing the type of code for debugging."

 

但是,如果我使用无需调试即可启动"来运行应用程序,运行正常.

However, if I run the application with "Start Without Debugging" it runs fine.

真正奇怪的是,这个问题毫无原因地显示出来.我只是关闭了Visual Studio,几分钟后再次打开它时,它无法运行我的任何应用程序.我已经尝试过重新安装和安装Visual Studio,但这不是 解决问题.

What is really strange is that this problem showed without any reason. I just closed Visual Studio and when I opened it again a few minutes later it couldn't run any of my applications. I've tried reparing and reinstalling Visual Studio but that doesn't solve the problem.

这是我第二次遇到这种情况,这是我第一次通过对整个系统应用还原点来解决此问题,但我想避免再次这样做.我怀疑此问题可能是Windows自动更新之一引起的,但我不确定.

This is the second time this happens to me, the first time I solved it by applying a restore point to the whole system but I'd like to avoid doing that again. I suspect this problem may be caused by one of Windows automatic updates, but I'm not sure.

 

我需要快速解决此问题,因为我的项目进度很紧.请帮忙.

I need an answer to this problem fast because my project is on a tight schedule. Please help.

 

我的系统信息:
PC:笔记本电脑华硕g72gx

My system information:
PC: Laptop asus g72gx

操作系统:Windows 7 64位
Visual Studio 2010专业版

OS: Windows 7 64 bit
Visual Studio 2010 Professional

 

 

如果删除文件夹"Visual Studio 2010",则会发现一些有趣的东西.来自文档"文件夹,Visual Studio可以一次运行我的应用程序,但随后它会自动还原该文件夹,并返回问题.我几乎可以确定问题所在 在文件"CurrentSettings.vssettings"内部位于文档\ Visual Studio 2010 \设置\"但我不知道如何解决.

I found something interesting, if I delete the folder "Visual Studio 2010" from the "Documents" folder then Visual Studio can run my applications once, but then it automatically restores the folder and the problems return. I'm almost sure the problem is inside the file "CurrentSettings.vssettings" located on "Documents\Visual Studio 2010\settings\" but I don't know how to solve it.

推荐答案

这可能有点远,但要确保视觉效果Studio以管理员身份运行.您的帐户具有管理员权限是不够的.在其他工作环境中,右键单击VS图标,然后选择以管理员身份运行".

This may be a bit of a long shot, but make sure Visual Studio is running as Administrator. It's not sufficient that your account has Administrator privileges. In other workds, right-click on the VS icon and select "Run as Administrator".

有帮助吗?


这篇关于VC ++ 2010调试器在“开始调试"处挂起.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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