Compartir a través de


Disabling JIT Debugging Dialog Box

When an executable throws unhandled exception by default JIT-debugging kicks in that allow you to attach a debugger to the dying process and investigate the issue. This useful feature can become annoying during the development where you just want to get the stack dump of the unhandled exception. The Visual Studio 2005 and Vista have JIT debugging enabled by default.

However it is really easy to turn it off. Change the value of the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\.NETFramework\DbgJITDebugLaunchSetting to 1 to get the stack dump, the process will be terminated after that.

For more information: https://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconenablingjit-attachdebugging.asp

Comments

  • Anonymous
    June 20, 2006
    You can also do this per environment with the env variable COMPLUS_DbgJITDebugLaunchSetting=1 which is nice because then you don't accidentially leave your machine in a wierd state...

    -josh
  • Anonymous
    April 11, 2007
    The comment has been removed
  • Anonymous
    June 14, 2009
    PingBack from http://patiocushionsource.info/story.php?id=2291