简体   繁体   English

为什么VS2010调试器会挂起?

[英]Why would the VS2010 Debugger Hang?

This just started happening on both my work box and home. 这刚开始发生在我的工作箱和家里。

In Visual Studio 2010, I'll start a debugging session and the program will run to the first breakpoint and that's it. 在Visual Studio 2010中,我将启动一个调试会话,程序将运行到第一个断点,就是这样。

I can hit F10/11/5 all I want. 我可以按F10 / 11/5命中。 Nothing will happen. 什么都不会发生。 The only way to get out is a Shift+F5. 唯一的出路是Shift + F5。

This driving me nuts! 这让我疯了!

Both machines are 64 bit Windows 7. Though, that's where the similarities end. 两台机器都是64位Windows 7.虽然,这就是相似之处的结束。

Is anyone else experiencing this? 还有其他人遇到过这种情况吗?

In my experience the most common reason for Visual Studio hanging is a property is being auto-evaluated and gets stuck in native code causing a hang. 根据我的经验,Visual Studio挂起的最常见原因是属性正在自动评估并且卡在本机代码中导致挂起。 The first step I would take would be to disable auto-evaluated properties and implicit function calls in the debugger. 我将采取的第一步是在调试器中禁用自动计算属性和隐式函数调用。

  • Tools -> Options 工具 - >选项
  • Go to Debugger 转到调试器
  • Uncheck "Enable property evaluation and other implicit function calls" 取消选中“启用属性评估和其他隐式函数调用”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM