调试技术:在调试WPF应用程序后,Visual Studio 2008会导致致命崩溃 [英] Debug Techniques: Visual Studio 2008 Process fatal crash after debug of WPF application
问题描述
我有一个相对较大的C#/WPF Visual Studio 2008解决方案,我正在2个开发人员的计算机之间进行测试和同步.在我的计算机上,我能够成功地构建和调试(运行)项目,而不会出现错误.
I have a relatively large C#/WPF Visual Studio 2008 solution that I am trying to test and synchronize across 2 developer's computers. On my computer, I am able to build and debug (run) the project successfully without errors.
在第二台计算机上,我可以构建解决方案而不会出现任何错误.当我尝试运行解决方案时,Visual Studio启动了该过程,但大约3秒钟后,整个开发平台退出了.在它退出之前,我简要地看到了Visual Studio打开的我们的.xaml文件之一,在特定的行号上弹出了一个黄色的未处理的异常"框.我目前正在与公司中负责实施该xaml文件功能的部分联系.
On the second computer, I am able to build the solution without any errors. When I attempt to run the solution, Visual Studio starts the process but about 3 seconds later the entire development platform exits. Before it exits I briefly see one of our .xaml files opened by visual studio with a yellow 'unhandled exception' box pop-up on a certain line number. I'm currently contacting the part of my company who is responsible for implementing the functionality of that xaml file.
这在我脑海中提出了一个更大的问题:当Visual Studio在尝试运行程序后立即退出时,如何解决问题?
This raised a bigger issue in my mind: How can you troubleshoot an issue when Visual Studio is immediately exiting after attempting to run a program?
开始调试时,Visual Studio 2008崩溃帖子可能也有帮助.我正在尝试这些解决方案.
The Visual Studio 2008 crashes when starting to debug post may also be helpful. I'm trying those solutions now.
推荐答案
我们发现执行以下三个命令有助于解决问题:
We found that executing the three following commands helped to fix our problem:
devenv.exe /ResetSettings
devenv.exe /ResetSkipPkgs
devenv.exe /Setup
在此处的另一个stackoverflow帖子中建议了帮助我们确定导致此问题的是AccuRev的Visual Studio插件.
This was suggested in another stackoverflow post here helped us to determine that it was a plugin, AccuRev's Visual Studio plugin, that was causing the issue.
该问题似乎也来自Microsoft,此处记录的修补程序为已知问题" 此处记录了.
The issue also appears to be a "known issue" with a hotfix from Microsoft, documented here.
VS2008 SP1:在Visual Studio 2008 SP1中,将窗口置于非默认位置(例如,在停靠和取消停靠窗口之后)时,在调试和设计之间切换或从全屏切换到全屏或从全屏切换时,可能会导致Visual崩溃Studio IDE.
VS2008 SP1: In Visual Studio 2008 SP1, having windows in non-default locations, for example after docking and undocking windows, when switching between debugging and designing or switching to/from full screen, can result in a crash of the Visual Studio IDE.
感谢您的帮助!
这篇关于调试技术:在调试WPF应用程序后,Visual Studio 2008会导致致命崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!