Visual Studio Just-In-Time Debugging

Source: Internet
Author: User

Just-In-Time debugging is a feature this launches the Visual Studio debugger automatically when a, running outside Visual Studio, encounters a fatal error. Just-In-Time debugging allows to examine the error before the application was terminated by the operating system. The Visual Studio debugger does not need to is running when the error occurs.

If a error occurs while Just-In-Time debugging are enabled, a dialog box opens, asking if you want to debug the D which debugger you want.

If a program running as another user hits a fatal error, a Security Warning dialog box appears before the debugger. For more information, the warning:attaching to a untrusted Process Can be dangerous.

You can enable Just-In-Time debugging from the Options dialog box. For more information, 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, you'll to:enable Just-In-Time debugging for Windows Forms.

After Visual Studio was installed on a server, the default behavior when a unhandled exception occurs was to show an Ex Ception dialog that requires user intervention to either start Just-In-Time debugging or ignore the exception. This may is undesirable for unattended operation. To configure the "server to no longer" show a dialog as a unhandled exception occurs (the default behavior prior to Insta Lling 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.