如何停止“及时调试"?消息阻止构建服务器 [英] How to stop "Just In Time Debugging" messages blocking a buildserver

查看:99
本文介绍了如何停止“及时调试"?消息阻止构建服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的buildserver(建议使用TeamCity)在完成的c ++程序上运行大量测试套件.

Our buildserver (TeamCity, much recommended), runs our a whole bunch of testsuites on our finished c++ program.

总体而言,测试会导致我们的程序崩溃,通常会弹出一个VisualStudio对话框,向我提供JustInTime调试崩溃的信息.该对话框使构建服务器停止运行.它不会挂起,而不会标记为失败.我已经关闭了VisualStudio中的即时调试功能,但是当它关​​闭时,您仍然会收到一条消息:无法进行JustinTime调试,您可以在选项中将其打开".

Once in a whole, a test causes our program to crash, often bringing up a VisualStudio dialog offering me to JustInTime debug the crash. The dialog stops the buildserver from progressing. Instead of the build marked as failed, it just hangs. I've turned off the Just In Time debugging feature in VisualStudio, but when it's turned off, you still get a message "Couldn't JustinTime Debug this, you can turn it on in the options".

有人知道一种确保程序中任何未处理的异常不会导致任何模式对话框的方法吗?

Does anybody know of a way to ensure that any unhandled exception in a program does not result in any modal dialog?

推荐答案

这篇MSDN文章介绍了如何在Windows服务器上禁用即时调试.我将以下文章的相关部分包括在内:

This MSDN article explains how to disable Just-In-Time debugging on a Windows server. I've included the relevant portion of the article below:

在服务器上安装Visual Studio后,未处理时的默认行为 发生异常是为了显示异常"对话框,需要用户干预 启动即时调试或忽略异常.这可能是不希望的 无人值守的操作.要将服务器配置为在出现以下情况时不再显示对话框 发生未处理的异常(安装Visual Studio之前的默认行为),请使用 注册表编辑器删除以下注册表项:

After Visual Studio is installed on a server, the default behavior when an unhandled exception occurs is to show an Exception dialog that requires user intervention to either start Just-In-Time debugging or ignore the exception. This may be undesirable for unattended operation. To configure the server to no longer show a dialog when an unhandled exception occurs (the default behavior prior to installing Visual Studio), use the registry editor to delete the following registry keys:

  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger

在64位操作系统上,还删除以下注册表项:

On a 64-bit operating system also delete the following registry keys:

  • HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\DbgManagedDebugger

这篇关于如何停止“及时调试"?消息阻止构建服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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