Редактиране

Споделяне чрез


Disable the Just-In-Time Debugger

The Just-In-Time (JIT) Debugger dialog in Visual Studio might open when errors occur in a running application. The dialog can prevent the application from continuing execution.

The JIT Debugger gives you the option to launch Visual Studio to debug the error. To follow through with this action, you must have Visual Studio or another selected debugger installed. The debugger provides detailed information about the error and features to help you resolve the issue.

This article explains how you can prevent the JIT Debugger dialog from interrupting application execution.

Disable or respond to JIT Debugger

There are different options for how to respond to the JIT Debugger dialog depending on your Visual Studio installation and task scenario.

The following table summarizes your options:

Configuration Scenario Instructions
Visual Studio installed Try JIT Debugger Debug the error by using the Just-In-Time Debugger
Visual Studio installed Disable JIT Debugger Disable JIT debugging from Visual Studio
Visual Studio previously installed, but not currently Disable JIT Debugger Disable JIT debugging from the Windows registry
Visual Studio never installed Prevent JIT debugging Prevent JIT debugging by disabling script debugging or disabling server-side debugging

Disable script debugging or server-side debugging

The JIT Debugger dialog might open when your Web app encounters an error, even if your configuration doesn't include Visual Studio. This situation can occur if you never installed Visual Studio, or previously uninstalled Visual Studio. In these scenarios, you can try disabling script debugging or server-side debugging.

Disable script debugging for Web app

Follow these steps to disable script debugging for a Web app:

  1. Open Windows Control Panel, and browse to the Network and Internet > Internet Options page.

  2. In the Internet Properties dialog, go to the Advanced tab.

  3. Scroll to the Browsing group, and select the Disable script debugging option.

    Note

    Depending on your version of Windows and your browser, you might need to select more than one option.

    The following example shows two relevant options selected:

    Screenshot that shows how to select 'Disable script debugging' options for Internet Properties in Windows Control Panel.

Disable server-side debugging for Web app

If you're hosting an ASP.NET Web app in Internet Information Services (IIS), disable server-side debugging with these steps:

  1. Open IIS Manager, and go to the Features View.

  2. In the ASP.NET section, double-click or select .NET Compilation.

  3. In the Actions pane, select Open Feature.

  4. For the Behavior > Debug option, select False.

    Note

    The specific steps are different in older versions of IIS.