Share via


Enabling JIT-Attach Debugging

JIT-attach debugging is the phrase used to describe attaching a debugger to a process when you encounter errors, or it can be triggered by specific methods or functions.

JIT-attach debugging is used under the following fault conditions:

JIT-attach debugging is also triggered by calls to the following methods and functions:

Before the .NET Framework version 4, the .NET Framework provided separate registry keys to control the behavior of native and managed debuggers. Starting with the .NET Framework 4, control is consolidated under a single registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Current Version\AeDebug. The values you can set for that key determine whether a debugger is invoked, and, if so, whether it is invoked with a dialog box that requires user interaction. For information about setting this registry key, see Configuring Automatic Debugging in the MSDN Library.

See Also

Concepts

Making an Image Easier to Debug

Enabling Profiling

Other Resources

Debugging, Tracing, and Profiling