Partager via


IDebugDocumentTextEvents2

This interface is used to notify Visual Studio about changes to the source document that are supplied by the debug engine.

IDebugDocumentTextEvents2 : IUnknown

Notes for Implementers

The DE implements this interface to support making changes to the source code. This interface is typically implemented on the same object that implements the IDebugDocument2 interface.

Notes for Callers

Visual Studio obtains this interface through a call to the Advise method. The IConnectionPoint interface is obtained from a call to the EnumConnectionPoints method. The IConnectionPointContainer interface is obtained by calling the QueryInterface method on an IDebugDocument2 interface.

Methods in Vtable Order

The following table shows the methods of IDebugDocumentTextEvents2.

Method

Description

IDebugDocumentTextEvents2::onDestroy

Indicates that the entire document has been destroyed.

IDebugDocumentTextEvents2::onInsertText

Notifies the debug package that text has been inserted into the document.

IDebugDocumentTextEvents2::onRemoveText

Notifies the debug package that text has been removed from the document.

IDebugDocumentTextEvents2::onReplaceText

Notifies the debug package that text has been replaced in the document.

IDebugDocumentTextEvents2::onUpdateTextAttributes

Notifies the debug package that text attributes have been updated in the document.

IDebugDocumentTextEvents2::onUpdateDocumentAttributes

Notifies receiver of the event that the document attributes have been updated.

Remarks

Only debug engines that supply their own documents would take advantage of the IDebugDocumentTextEvent2 interface. An example of this would be a scripting debug engine. In the process of interpreting scripts, new source code can be generated that is not present in any disk file and is known only to the DE.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See Also

Reference

IDebugDocumentText2

IDebugDocument2