Send events

Applies to: yesVisual Studio noVisual 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

The mechanism for communication between the debugger and the debug engine (DE) is an event model based on DCOM. Events are sent as COM objects, and each event has parameters that specify:

  • The DE that called the event.

  • A description of what happened.

  • The process, program, and thread information that identifies the context of where the event occurred. The process is not sent for events sent from a DE.

  • The event type that indicates whether the event is synchronous or asynchronous.

    All debug events are sent using the method IDebugEventCallback2::Event.

In this section

Event sources Explains the two sources of events: the debug engine (DE) and the session debug manager (SDM).

Supported event types Discusses the currently supported event types: asynchronous and synchronous.

Event descriptions Defines events and the reasons for their use.

Creating a custom debug engine Describes how a DE works with the interpreter or operating system to provide debugging services.