다음을 통해 공유


IDebugEngineProgram2

This interface provides multi-threaded debugging support.

IDebugEngineProgram2 : IUnknown

Notes for Implementers

A debug engine implements this interface to support simultaneous debugging of multiple threads. This interface is implemented on the same object that implements the IDebugProgram2 interface.

Notes for Callers

Use QueryInterface to obtain this interface from an IDebugProgram2 interface.

Methods in Vtable Order

The following table shows the methods of IDebugEngineProgram2.

Method

Description

IDebugEngineProgram2::Stop

Stops all threads running in this program.

IDebugEngineProgram2::WatchForThreadStep

Watches for execution (or stop watching for execution) to occur on the given thread.

IDebugEngineProgram2::WatchForExpressionEvaluationOnThread

Allows (or disallows) expression evaluation to occur on the given thread, even if the program is stopped.

Remarks

Visual Studio calls this interface in response to an IDebugProgramCreateEvent2 event and to set the "Watch for Thread Step" and "Watch for Expression Evaluation on Thread" states of the program. IDebugEngineProgram2::Stop is called whenever the program is to be stopped; this method gives the program a chance to terminate all threads.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See Also

Reference

IDebugProgram2