在应用程序崩溃时禁用调试提示 [英] Disable debug prompt on application crash

查看:48
本文介绍了在应用程序崩溃时禁用调试提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:我需要禁用控制台应用程序的崩溃调试提示.

Question: I need to disable the console application's crash debug prompt.

背景:我们有一个与第三方同步信息的应用程序,该应用程序在一天中的某些时间由于与第三方的连接问题而崩溃.我们无法访问源代码来正确捕获错误,所以我只需要应用程序失败并重试.我有另一个应用程序来监控我们的同步工具以确保它正在运行.

Background: We've got an application that syncs info with a third party that crashes due to connectivity problems with the 3rd party at certain times of the day. We don't have access to the source code to trap the error properly so I just need the application to fail and try again. I've got another application that monitors our sync tool to make sure it's running.

当同步应用程序崩溃时,会出现一个需要用户交互的调试提示.因为它停留在屏幕上,所以应用程序实际上从未停止运行.因此,健康检查"永远不知道失败.

when the sync apps crashes there is a debug prompt that requires a users interaction. Because this stays on the screen the application never actually stops running. As a result the "health check" never knows of the failure.

我大约在 2 年前完成了这项工作,但在我的一生中,我不记得这篇文章或所需的注册表路径.

I've done this about 2 years ago but for the life of me I can't the remember the article or the needed registry path.

谢谢,布莱恩

操作系统: Windows 2003 Server应用程序类型:.NET 3.5 控制台应用程序

OS: Windows 2003 Server Application Type: .NET 3.5 Console Application

修复:发现者:John Knoeller

FIX: found by: John Knoeller

删除以下键

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\AeDebug\DebuggerHKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ .NETFramework\DbgManagedDebugger

推荐答案

可能是这个?

如何:启用/禁用即时调试

注册表项是

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger 

这篇关于在应用程序崩溃时禁用调试提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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