Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to: Visual Studio
Visual 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.
IDebugEngineProgram2 : IUnknown
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.
Use QueryInterface to obtain this interface from an IDebugProgram2
interface.
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. |
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.
Header: msdbg.h
Namespace: Microsoft.VisualStudio.Debugger.Interop
Assembly: Microsoft.VisualStudio.Debugger.Interop.dll