禁用实时调试器Disable the Just-In-Time Debugger

当正在运行的应用中出现错误时,“实时调试器”对话框可能会打开并阻止该应用继续运行。The Just-In-Time Debugger dialog box may open when an error occurs in a running app, and prevent the app from continuing.

实时调试器提供了启动 Visual Studio 来调试错误的选项。The Just-In-Time Debugger gives you the option to launch Visual Studio to debug the error. 必须安装 Visual Studio 或其他选定的调试器,才能查看有关该错误的详细信息或尝试对其进行调试。You must have Visual Studio or another selected debugger installed to view detailed information about the error or try to debug it.

如果你已是 Visual Studio 用户,并想要尝试对错误进行调试,请参阅使用实时调试器进行调试If your already a Visual Studio user and want to try to debug the error, see Debug using the Just-In-Time Debugger. 如果无法修复此错误,或​​者想阻止实时调试器打开,则可以从 Visual Studio 中禁用实时调试If you can't fix the error, or want to keep the Just-In-Time Debugger from opening, you can disable Just-In-Time debugging from Visual Studio.

如果你先前安装了 Visual Studio 但已将其卸载,则可能需要从 Windows 注册表中禁用实时调试If you had Visual Studio installed but no longer do, you may need to disable Just-In-Time debugging from the Windows registry.

如果尚未安装 Visual Studio,则可以通过禁用脚本调试或服务器端调试来阻止实时调试。If you don't have Visual Studio installed, you can prevent Just-In-Time debugging by disabling script debugging or server-side debugging.

  • 如果要尝试运行 Web 应用,请禁用脚本调试:If you're trying to run a web app, disable script debugging:

    在 Windows“控制面板” > “网络和 Internet” > “Internet 选项”中,选择“禁用脚本调试(Internet Explorer)”和“禁用脚本调试(其他)” 。In Windows Control Panel > Network and Internet > Internet Options, select Disable script debugging (Internet Explorer) and Disable script debugging (other). 确切的步骤和设置取决于你的 Windows 和浏览器版本。The exact steps and settings depend on your version of Windows and your browser.

    JIT Internet 选项JIT Internet Options

  • 如果要在 IIS 中托管 ASP.NET Web 应用,请禁用服务器端调试:If you're hosting an ASP.NET web app in IIS, disable server-side debugging:

    1. 在 IIS 管理器“功能视图”的“ASP.NET”部分下,双击“.NET 编译”,或选择它,然后选择“操作”窗格中的“打开功能” 。In IIS Manager Features View, under the ASP.NET section, double-click .NET Compilation, or select it and then select Open Feature in the Actions pane.
    2. 在“行为” > “调试”下,选择“False” 。Under Behavior > Debug, select False. 在较早版本的 IIS 中,步骤有所不同。The steps are different in older versions of IIS.

禁用实时调试后,应用可能能够处理错误并正常运行。After you disable Just-In-Time debugging, the app may be able to handle the error and run normally.

如果应用仍存在未处理的错误,则可能会显示错误消息,或者应用可能会崩溃或挂起。If the app still has an unhandled error, you may see an error message, or the app may crash or hang. 在错误得到修复之前,应用不会正常运行。The app won't run normally until the error is fixed. 你可以尝试与应用的所有者联系,并要求他们对其进行修复。You can try to contact the owner of the app and ask them to fix it.