2

On a Windows XP, 64 bit machine, which serves as a build agent for TeamCity, we have Visual Studio 2005, 2008 & 2010 installed. All three installations have all their Just-In-Time debugger options unchecked in the Visual Studio options dialog (Tools > Options > Debugging > Just-In-Time).

The registry setting which is supposed to govern the JIT debugger (HKEY_LOCAL_MACHINE\Software\Microsoft.NETFramework\DbgJITDebugLaunchSetting) has its value set to "1" as per the instructions at http://www.hanselman.com/blog/HowToTurnOffdisableTheNETJITDebuggingDialog.aspx

Despite these settings, whenever a certain build runs on this agent while an RDP session is active (but disconnected), a dialog box appears in the RDP session which states that the JIT debugger is incapable of debugging because the exception is thrown by a newer version of the .Net framework. The build will hang in TeamCity until someone connects to the RDP session to dismiss the dialog box. At this point, TeamCity declares the build a success and for all intents and purposes, it is.

enter image description here

How do I make the JIT debugger stop interfering with the builds?

grenade
  • 577

3 Answers3

5
[HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug]
"Auto"=dword:00000000
kinokijuf
  • 8,364
-2

I had this message popping in Outlook 2016. I Disabled one of the Add-ins called "Microsoft Forfront Identity Manager Add-in" and that worked fine.

Stevoisiak
  • 16,075
Farhud
  • 1
-2

Disable the JIT option: Open cmd as adminsitrator and type serverWerOptin /disable

Disable the popup: Go to HKLM\Software\Microsoft\Windows\Windows Error Reporting and add a DWORD key called DontShowUI with a value of 1.

Oktaku
  • 1