---
name: "WaitForDebugEvent"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/WaitForDebugEvent"
---

# WaitForDebugEvent(3w)

## NAME

**WaitForDebugEvent** (KERNEL32.@)

## SYNOPSIS

BOOL WaitForDebugEvent\
  (\
   LPDEBUG\_EVENT *event*,\
   DWORD         *timeout*\
  )

## DESCRIPTION

Waits for a debugging *event* to occur in a process being debugged before filling out the debug *event* structure.

## PARAMS

*event* **\[Out\]**  Address of structure for *event* information.

*timeout* **\[In\]**  Number of milliseconds to wait for *event*.

## RETURNS

Returns **TRUE** if a debug *event* occurred and **FALSE** if the call timed out.

## IMPLEMENTATION

Declared in **"winbase.h"**.

Implemented in **"dlls/kernel32/debugger.c"**.

Debug channel **"debugstr"**.
