After Visual Studio is installed, all programs have an exception. It is dominant-enable/disable Visual Studio real-time debugging.

Source: Internet
Author: User

Visual Studio Debugger
How to: enable/disable real-time debugging
You can enable real-time debugging to enableProgramWhen a fatal error occurs, the Visual Studio debugger is automatically started.
Process
Enable/disable real-time debugging
Click options in the Tools menu ".

In the "options" dialog box, select the "debug" folder.

In the debug folder, select the real-time page.

Enable theseCodeIn the real-time debugging box of type, select or clear the related program types: managed, local, or script ".

To enable real-time debugging and disable it, you must run it with the administrator privilege. When real-time debugging is enabled, a registry key is set. You need the administrator privilege to change this key.

Click OK ".

---------------------------------------------

Visual Studio Debugger
Real-time debugging

Real-time debugging is a function that automatically starts the Visual Studio debugger when a program running outside of Visual Studio encounters a fatal error. Real-time debugging allows you to check for errors before the application is terminated by the operating system. The Visual Studio debugger does not need to run when an error occurs.

If an error occurs when real-time debugging is enabled, a dialog box is displayed asking if you want to debug the program and which debugger to use.

If a program running as another user hits a fatal error, a security warning dialog box is displayed before the debugger starts. For more information, see Security Warning: attaching to untrusted processes may be dangerous.

You can enable real-time debugging in the "options" dialog box. For more information, see How to: enable/disable real-time debugging.

For Windows Forms, you must also enable real-time debugging in the machine. config or application.exe. config file. For more information, see How to: enable real-time debugging for Windows Forms.

After Visual Studio is installed on the server, when an unhandled exception occurs, the default action will display an "exception" dialog box that requires user intervention. You can either start real-time debugging, ignore the exception. This may be unnecessary for unattended execution. To configure the server to no longer display the dialog box when an unhandled exception occurs (default behavior before Visual Studio is installed), Use Registry Editor to delete the following registry items:

HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows NT \ CurrentVersion \ AeDebug \ Debugger

HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \. netframework \ dbgmanageddebugger

Delete the following registry entries on the 64-bit operating system:

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.