次の方法で共有


IDebugEngineProgram2

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

This interface provides multi-threaded debugging support.

Syntax

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
Stop Stops all threads running in this program.
WatchForThreadStep Watches for execution (or stop watching for execution) to occur on the given thread.
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. 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