如何解决Visual Studio 2012挂起/锁定问题
我正在Visual Studio中进行PHP开发,我的解决方案包含PHP,SSRS和SQL Server(SSDT)的项目.我正在使用TFS进行版本控制.因此,在我的开发环境中,有很多事情可能会出错".
I am doing PHP development in Visual Studio, and my solution contains projects for PHP, SSRS, and SQL Server (SSDT). And I am using TFS for version control. So there's a lot going on in my dev environment that can "go wrong".
我遇到断续的挂起,通常是一个剪辑大约5分钟. Visual Studio为我提供了等待光标,如果我在VS中单击任何位置,则窗口将变暗.然后我只需要等待即可.有时我可以结束devenv.exe任务,而其他时候则需要几分钟才能终止该任务.如果我感到有耐心,我就等一下,最终(约5分钟)VS复活.即使终止流程,我也从未经历过数据丢失,源代码控制问题等问题.
I am experiencing intermittent hangs, usually around 5 minutes a clip. Visual Studio gives me the wait cursor, and if I click anywhere in VS the window dims. And then I just have to wait it out. Sometimes I can end the devenv.exe task, other times it takes several minutes to terminate the task. If I am feeling patient, I just wait and eventually (around 5 mins) VS comes back to life. I've never experienced loss of data, source control issues, etc, even when I terminate the process.
有时我保存时会发生这种情况.有时在我办理入住手续时.有时当我结帐时.有时候,当我建立.我无法辨别任何形式的行为.
It happens sometimes when I save. Sometimes when I check-in. Sometimes when I check out. Sometimes when I build. I have been unable to discern any sort of pattern of the behavior.
我所有的工作站资源都很好-没有RAM或I/O或网络或CPU问题.
All my workstation resources are fine- no RAM or i/o or network or CPU issues.
如何解决此问题?我可以在某种日志记录模式下运行VS,该模式可以让我查明在这些锁定期间花费了这么长时间吗?
What can I do to troubleshoot this issue? Can I run VS in some sort of logging mode that would allow me to pinpoint what is taking so long during these periods of lockup?
要在Visual Studio中打开登录,请运行:devenv.exe/log
To turn on logging in visual studio, run: devenv.exe /log
我个人会用快捷方式来做到这一点.
I personally would do this with a shortcut.