织梦CMS - 轻松建站从此开始!

罗索实验室

当前位置: 主页 > 杂项技术 > VC(MFC) >

Visual Studio Debugger Just-In-Time Debugging

落鹤生 发布于 2010-12-09 17:12 点击:次 
今天早上开机 我的爱机弹出 "Visual Studio Debugger Just-In-Time Debugging "的调试窗口,我google了半天才找了解决办法, 怎样才能关闭Visual studio just-in-time debugger
TAG:

今天早上开机 我的爱机弹出 "Visual Studio Debugger Just-In-Time Debugging "的调试窗口,我google了半天才找了解决办法, ((怎样才能关闭Visual studio just-in-time debugger,错误讯息主要是因为VS.NET卸载之后,系统的设定还是会去找VS.NET成为预设的侦错工具,但是目前系统中已经没有VS.NET 了,所以才会出现这个讯息。

点选[开始]>[运行],在"打开"对话框中键入以下指令:

drwtsn32 -i

点选[确定],这个指令将会把Dr.Watson设定成预设的Debugger工具,这样就不会每次都会跳出这样的错误讯息了。))解决完毕!
可是当我发现天津的另外一服务器也如此故障,同样解决办法无效,于是有了下文,照着操作,终于解决!写给大家, 希望大家以后不要再走弯路.
---------------------------------------------------------------
它大意是:出现这种情况,往往是因为原先安装有VS,后来因某些原因(比如:卸载)导致VS无法使用!!
当系统中的有些软件出现错误时,会自动调用vs进行调试,但因为VS无法使用,就出现了visual studio just-in-time debugger窗口。

此方法主要就是删除指定的注册表
32位系统处理方法:
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

----------------------------------------------------------------------------------------
原文如下:(非常感谢那位陌生的朋友)

Visual Studio Debugger Just-In-Time Debugging
This topic applies to:
Visual Studio Edition
Visual Basic
C# C++ J#

Express No

Standard
Yes
Yes
Yes
Yes

Pro/Team
Yes
Yes
Yes
Yes


Just-In-Time debugging is a feature that launches the Visual Studio debugger automatically when a program, running outside Visual Studio, encounters a fatal error. Just-In-Time debugging allows you to examine the error before the application is terminated by the operating system. The Visual Studio debugger does not need to be running when the error occurs.

If an error occurs while Just-In-Time debugging is enabled, a dialog box opens, asking if you want to debug the program and which debugger you want to use.

If a program running as another user hits a fatal error, a security warning dialog box appears before the debugger starts. For more information, see Security Warning: Attaching to an Untrusted Process Can Be Dangerous.

You can enable Just-In-Time debugging from the Options dialog box. For more information, see How to: Enable/Disable Just-In-Time Debugging. For Windows forms, you must also enable Just-In-Time debugging in the machine.config or application.exe.config file. For more information, see How to: Enable Just-In-Time Debugging for Windows Forms. 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

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

Note
Just-In-Time debugging will not work for managed code hosted in a native application, such as Visualizers.


Note
After installing the .NET Framework on Windows Server 2003 or on Windows 2000 SP3 (or later), Just-In-Time debugging will not work on a process running in a limited user account in a Terminal Services session until the computer has been rebooted.

 

本文出处:http://blog.mdcsoft.cn/archives/200807/93.html

(秩名)
本站文章除注明转载外,均为本站原创或编译欢迎任何形式的转载,但请务必注明出处,尊重他人劳动,同学习共成长。转载请注明:文章转载自:罗索实验室 [http://www1.rosoo.net/a/201012/10588.html]
本文出处:mdcsoft.cn 作者:秩名
顶一下
(4)
66.7%
踩一下
(2)
33.3%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
表情:
用户名: 验证码:点击我更换图片
栏目列表
将本文分享到微信
织梦二维码生成器
推荐内容