Share via


IDebugOutputStringEvent2

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

This interface is sent by the debug engine (DE) to the session debug manager (SDM) to output a string.

Syntax

IDebugOutputStringEvent2 : IUnknown

Notes for Implementers

The DE implements this interface to send a string to the Output window of the IDE. 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 DE creates and sends this event object to send a string to the Output window. The event is sent by using the IDebugEventCallback2 callback function that is supplied by the SDM when it is attached to the program being debugged.

Methods in Vtable Order

The following table shows the method of IDebugOutputStringEvent2.

Method Description
GetString Gets the displayable message.

Remarks

For example, in unmanaged code, the string to be output can originate when the program being debugged sends a string to the Win32 OutputDebugString function. This string is intercepted by the DE and sent on to the SDM as the IDebugOutputStringEvent2 event.

Use IDebugMessageEvent2 to send a message that requires a user response.

Use IDebugErrorEvent2 to send an error message that does not require a response.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also