Table of contents
TOC
Collapse the table of content
Expand the table of content

Determining if a Debugger is Attached

Last Updated: 11/22/2016

You may wish to take certain actions with your driver if a kernel debugger is currently attached.

To determine the status of kernel debugging, the following variables and routines are useful:

  • (Microsoft Windows XP and later) The KD_DEBUGGER_ENABLED global kernel variable indicates whether kernel debugging is enabled.

  • (Windows XP and later) The KD_DEBUGGER_NOT_PRESENT global kernel variable indicates whether a kernel debugger is currently attached.

  • (Microsoft Windows Server 2003 and later) The KdRefreshDebuggerNotPresent routine refreshes the value of KD_DEBUGGER_NOT_PRESENT.

Send comments about this topic to Microsoft

© 2017 Microsoft