小 今天早上开机 我的爱机弹出 "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.
相关文章
- Visual Studio的Debugger Visualizers
- Just-In-Time Debugging in Visual Studio 禁止VS在服务器上调试
- Visual Studio Code-使用Chrome Debugging for VS Code调试JS
- Visual Studio Debugger七个鲜为人知的小功能
- 用什么方法可以弹出一个调试窗口(提示启动一个visual studio),类似于.Net里的 Debugger.Launch函数
- 转:VS2010调试NUnit测试项目 (Running or debugging NUnit tests from Visual Studio without any extensions)
- 20 debugging tips for native development with Visual Studio
- VS 本地调试 x64 平台 “Visual Studio Remote Debugging Monitor 已停止工作” 问题解决
- 转:Remote debugging with Visual Studio 2010
- Mastering Debugging in Visual Studio 2010 - A Beginner's Guide