Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you disable Just-in-Time debugging messages?

In a relatively new installation of Windows Server 2008 R2, there are occasional popup messages about Just-in-time debugging. These may come up in w3wp.exe when a search bot accesses an asp page, for example. These messages are local Windows popups, not in browsers.

I cannot debug "just-in-time", however, because there are no and never have been any debuggers on the server. Microsoft is kind enough to tell my I don't have a VS2010 license to debug when I click debug. This makes the popup messages pretty useless, particularly since they contain no real information and the information causing the error is generally in the logs.

According to this link and this SO question, I disabled the AeDebug\Debugger keys, and the DbgManagedDebugger keys did not exist. This had no effect on the error messages.

How can I disable these Just-in-time debugging popup messages?

enter image description here

like image 709
xpda Avatar asked Dec 12 '13 17:12

xpda


2 Answers

It is definitely the AeDebug\Debugger key, sounds like you didn't "disable" it properly or overlooked the 32-bit version of the key.

Deleting vsjitdebugger.exe from the c:\windows\syswow64 and system32 directories should remove the dialog as well. That's the program that displays this dialog and is referenced in the AeDebug key.

Also consider uninstalling Visual Studio since you have no use for it.

like image 85
Hans Passant Avatar answered Sep 20 '22 05:09

Hans Passant


Execute these PowerShell statements to disable the JIT debugger:

Remove-itemproperty -Path "HKLM:SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug" -Name "Debugger"
Remove-itemproperty -Path "HKLM:SOFTWARE\Microsoft\.NETFramework" -Name "DbgManagedDebugger"
Remove-itemproperty -Path "HKLM:SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug" -Name "Debugger"
Remove-itemproperty -Path "HKLM:SOFTWARE\Wow6432Node\Microsoft\.NETFramework" -Name "DbgManagedDebugger" 
like image 34
Willem-Derk Nijdam Avatar answered Sep 20 '22 05:09

Willem-Derk Nijdam