BCDEdit /debug

The /debug boot option enables or disables kernel debugging of the Windows operating system associated with the specified boot entry or the current boot entry.

Note

Before setting BCDEdit options you might need to disable or suspend BitLocker and Secure Boot on the computer.

    bcdedit /debug [{ID}] { on | off }

Parameters

{ID}

The {ID} is the ID that is associated with the boot entry, such as {DEFAULT} for the default OS boot entry. If you do not specify an {ID}, the command modifies the operating system that is currently active. For more information about working with boot entry identifiers, see Boot Options Identifiers.

on
Enables kernel debugging of the specified boot entry. If a boot entry is not specified, kernel debugging is enabled for the current operating system.

off
Disables kernel debugger of the specified boot entry. If a boot entry is not specified, kernel debugging is disabled for the current operating system.

Comments

The /debug boot option enables kernel debugging for a specific boot entry. Use the /dbgsettings option to configure the type of debugging connection to use and the connection parameters. If no /dbgsettings are specified for the boot entry, the global debug settings are used. The default values for the global settings are shown in the following table.

dbgsetting parameter Default value
debugtype Local
debugstart Active
noumex Yes

The following example enables kernel debugging of the default boot entry.

bcdedit /debug on 

For information about Windows debugging tools, see Windows Debugging and Setting Up KDNET Network Kernel Debugging Automatically