다음을 통해 공유


IDebugBreakEvent2

This interface tells the session debug manager (SDM) that an asynchronous break has been successfully completed.

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 IDebugProgram2::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 IDebugProgram2::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

See Also

Reference

IDebugProgram2::CauseBreak

IDebugEvent2

IDebugEventCallback2