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