A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



IsDebuggerPresent

The IsDebuggerPresent function determines whether the calling process is running under the context of a debugger.

VB4-32,5,6
Declare Function IsDebuggerPresent Lib "kernel32" () As Long

VB.NET
System.Diagnostics.Debugger.IsLogging

Operating Systems Supported
Requires Windows NT 4.0 or later; Requires Windows 98 or later

Library
Kernel32

Return Values
If the current process is running in the context of a debugger, the return value is nonzero.

If the current process is not running in the context of a debugger, the return value is zero.

Last update: 07 April 2006