description | title | ms.date | ms.topic | f1_keywords | helpviewer_keywords | author | ms.author | manager | ms.subservice | ||
---|---|---|---|---|---|---|---|---|---|---|---|
This interface is used by the debug engine (DE) to send debug events to the session debug manager (SDM). |
IDebugEventCallback2 |
11/04/2016 |
reference |
|
|
maiak |
maiak |
mijacobs |
debug-diagnostics |
This interface is used by the debug engine (DE) to send debug events to the session debug manager (SDM).
IDebugEventCallback2 : IUnknown
Visual Studio implements this interface to receive events from a debug engine.
A debug engine typically receives this interface when the SDM calls Attach, Attach, or LaunchSuspended. A debug engine sends events to the SDM by calling Event.
The following table shows the methods of IDebugEventCallback2
.
Method | Description |
---|---|
Event | Sends notification of debugging events to the SDM. |
Although EvaluateSync and EvaluateAsync specify that they take an IDebugEventCallback2
interface, this is not the case, and the interface pointer will always be a null value. Instead, the debug engine must use the IDebugEventCallback2
interface received in the call to Attach, Attach, or LaunchSuspended.
If a package implements IDebugEventCallback in managed code, it is strongly advised that xref:System.Runtime.InteropServices.Marshal.ReleaseComObject%2A be invoked on the various interfaces that are passed to Event.
Header: msdbg.h
Namespace: Microsoft.VisualStudio.Debugger.Interop
Assembly: Microsoft.VisualStudio.Debugger.Interop.dll