Share via


IDebugEventCallback2

Note

This article applies to Visual Studio 2015. 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 is used by the debug engine (DE) to send debug events to the session debug manager (SDM).

Syntax

IDebugEventCallback2 : IUnknown  

Notes for Implementers

Visual Studio implements this interface to receive events from a debug engine.

Notes for Callers

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.

Methods in Vtable Order

The following table shows the methods of IDebugEventCallback2.

Method Description
Event Sends notification of debugging events to the SDM.

Remarks

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 ReleaseComObject be invoked on the various interfaces that are passed to Event.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See Also

Core Interfaces
LaunchSuspended
Attach
Attach