大网数据广告活动
性能与资源

Enable Debug mode causes to hang

· 52CE 我爱测

Provides a solution to an issue where the Operating System with debug mode enabled may hang if no Debugger is connected.

This article provides a solution to an issue where the Operating System with debug mode enabled may hang if no Debugger is connected.

Original KB number:   2816225

Symptoms

On a computer that is running Windows 7 or Windows Server 2008 R2, after installing Debugging Tools for Windows, the Operating System with debug mode enabled may hang if an application throws user-mode exception.

Cause

When Debug mode is enabled and the debugger hasn't connected because of the user mode exception, the system will hang waiting for a debugger to intervene from the breakpoint.

Resolution

To resolve this problem, disable Debug mode using one of the following methods:

  • Using System Configuration settings

    1. Using keyboard press, Windows Key+R to open Run box.
    2. Type MSCONFIG and then press Enter.
    3. Select Boot tab and then select Advanced options.
    4. Uncheck on the Debug check box.
    5. Select OK.
    6. Select Apply and then OK.
    7. Restart the computer.
  • Using Command Line Interface

    1. Open an elevated Command prompt.
    2. Type the following command and press Enter:
      bcdedit -debug off
    3. Restart the computer.

More information

Note: Windows shouldn't be run in Debug mode permanently. Debug mode is enabled for connecting to Kernel Debug using Debuggers like Debugging Tools for Windows (WinDbg) and must be turned off once the purpose is accomplished.
Some Windows 7 systems might be shipped with DEBUG switch enabled, ensure to disable it.
To download Debugging Tools for Windows and more information, see Download the Windows Driver Kit (WDK).

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Server · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。