我将Windows Server 2008 X64 R2计算机用作开发框。在其他许多内容中,我在其中安装了Visual Studio 2008 SP1。当我从事一个项目时,有时需要使用调试>启动而无需调试(CTRL + F5)。如果该程序引发异常,我将出现一个新的R2风格窗口。我敢肯定,我在XP框上没有看到这个 - 这是我第一次直接在服务器上开发。有什么方法可以避免这种情况 - 真的开始烦我吗?

例如,我当前的项目正在访问WCF服务 - 我正在使用CTRL+F5来启动游戏机程序客户端。我运行它并获取窗口。标题是我刚开始的项目的名称,其中包含:

[insert-project-name-here] has stopped working

Windows can check online for a solution to the problem.

--> Check online for a solution and close the program

--> Close the program

--> Debug the program

V  View problem details.

单击“关闭程序”实际上将关闭窗口,并且在控制台中出现异常消息,这是我想要的(但没有额外的窗口贴上)。

我如何避免这种烦恼?

有帮助吗?

解决方案

在Windows Vista和2008 Server上进行的即时调试

默认情况下,在Windows Vista上,即将到来的调试器配置为显示下面显示的用户友好对话框。尽管您可以单击“调试”按钮并成功启动调试器,但您的原始Visual Studio实例将悬挂在调试会话的末尾。

In order to avoid having to constantly kill the Visual Studio process after debugging, you will want to change Just-In-Time debugger configuration to work the same way it does on Windows XP and Windows Server 2003. This configuration is stored in registry as DbgJITDebugLaunchSetting hkey_local_machine Software Microsoft.netframework键中的值。 Windows Vista上的默认值为0×10。将其更改为0×2,这是Windows XP上的默认值。进行此更改后,您不再看到用户定义的断点对话框,并且可以在调试后继续使用Visual Studio。

这一页 然后向下滚动到“ Windows Vista和2008 Server上的即时调试”

另请注意:如果您正在运行X64,则键将在WOW部分中。

其他提示

这些答案也无法修复我的Windows 7 x64-即使在重新启动后,这也没有解决:但这确实是:http://www.mattsilverman.com/2011/04/windows-is-checking-for-a-solution-to-to-the-problem.html

从开始菜单中,输入:“选择如何报告问题”

然后在弹出的窗口中选择“永不检查解决方案”

或者您可以尝试以下方法:

  1. 单击“启动”,然后在搜索栏或运行命令上键入gpedit.msc
  2. 现在导航到计算机配置 - >管理模板 - >系统 - > Internet通信管理,然后单击Internet通信设置
  3. 找到关闭Windows客户体验改进程序,双击或右键单击编辑。
  4. 单击启用。应用并确定并关闭GPEDIT窗口。

(学分去 http://social.answers.microsoft.com/forums/en-us/w7files/thread/291C0945-C41F-4C8B-BCA1-BCA1-6B6D0836F62A)

对于Windows Server 2008,这应该做到:

serverWerOptin /disable

您需要运行cmd.exe作为管理员才能使其正常工作。您可能还需要运行该线程的“永不检查解决方案”和“关闭Windows客户体验改进程序”的步骤。

以上解决方案对我没有任何作用。反而:

我通过单击“启动”并在搜索栏上键入gpedit.msc进入了组策略编辑器。

然后,我启用了计算机配置>管理模板> Windows组件> Windows错误报告>防止显示关键错误的用户界面”

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top