Share via


CorDebugThreadState Enumeration

Specifies the state of a thread for debugging.

typedef enum CorDebugThreadState {

    THREAD_RUN,
    THREAD_SUSPEND

} CorDebugThreadState;

Members

Member Description

THREAD_RUN

The thread runs freely, unless a debug event occurs.

THREAD_SUSPEND

The thread cannot run.

Remarks

The debugger uses CorDebugThreadState to control a thread's execution. The state of a thread can be set by using the ICorDebugThread::SetDebugState Method or ICorDebugController::SetAllThreadsDebugState Method method.

A callback provided to the Hosting (Unmanaged API Reference) API allows for message pumping, so an interrupted state is not needed.

Requirements

Platforms: Windows 2000, Windows XP, Windows Server 2003 family

Header: CorDebug.idl

Library: CorGuids.lib

.NET Framework Version: 2.0, 1.1, 1.0

See Also

Other Resources

Debugging Enumerations