DbgBreakPoint - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTDBG_H

NTSYSAPI
VOID
NTAPI
DbgBreakPoint(
    VOID
    );

#endif

View code on GitHub
// wdm.h

__analysis_noreturn VOID DbgBreakPoint();
View the official Windows Driver Kit DDI reference

NtDoc

This function is documented in Windows Driver Kit.

Windows Driver Kit DDI reference (nf-wdm-dbgbreakpoint)

DbgBreakPoint function

Description

The DbgBreakPoint routine breaks into the kernel debugger.

Return value

None

Remarks

The DbgBreakPoint routine is the kernel-mode equivalent of DebugBreak.

This routine raises an exception that is handled by the kernel debugger if one is installed; otherwise, it is handled by the debug system. If a debugger is not connected to the system, the exception can be handled in the standard way.

In kernel mode, a break exception that is not handled will cause a bug check. You can, however, connect a kernel-mode debugger to a target computer that has stopped responding and has kernel debugging enabled. For more information, see Windows Debugging.

See also

DbgBreakPointWithStatus

KdBreakPoint

KdBreakPointWithStatus