IDebugBreakEvent2
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 tells the session debug manager (SDM) that an asynchronous break has been successfully completed.
Syntax
IDebugBreakEvent2 : IUnknown
Notes for Implementers
The DE implements this interface to support user breaks in a program. The IDebugEvent2 interface must be implemented on the same object as this interface (the SDM uses QueryInterface to access the IDebugEvent2
interface).
Notes for Callers
The SDM calls CauseBreak when the user has requested the program being debugged to be paused. When the program has successfully been paused, the DE sends the IDebugBreakEvent2
event. This event is sent by using the IDebugEventCallback2 callback function supplied by the SDM when it attached to the program being debugged.
Remarks
For example, a user can select the Break All command on the Debug menu to break out of a program that is running an infinite loop. The SDM tells the program to stop by calling CauseBreak. The DE sends IDebugBreakEvent2
when the program finally stops.
Requirements
Header: msdbg.h
Namespace: Microsoft.VisualStudio.Debugger.Interop
Assembly: Microsoft.VisualStudio.Debugger.Interop.dll