Delen via


IDebugDocumentContext2

This interface represents a position in a source file document.

IDebugDocumentContext2 : IUnknown

Notes for Implementers

The debug engine (DE) implements this interface as part of its support for source code level debugging. In addition to a position in source code, this interface supplies methods for comparing contexts and navigating through a source code document.

Notes for Callers

Methods on several interfaces, most typically the IDebugStackFrame2::GetDocumentContext and IDebugCodeContext2::GetDocumentContext interfaces, return this interface.

Methods in Vtable Order

The following table shows the methods of IDebugDocumentContext2.

Method

Description

IDebugDocumentContext2::GetDocument

Gets the document that contains this document context.

IDebugDocumentContext2::GetName

Gets the displayable name of the document that contains this document context.

IDebugDocumentContext2::EnumCodeContexts

Retrieves a list of all code contexts associated with this document context.

IDebugDocumentContext2::GetLanguageInfo

Gets the language associated with this document context.

IDebugDocumentContext2::GetStatementRange

Gets the file statement range of this document context.

IDebugDocumentContext2::GetSourceRange

Gets the file source range of this document context.

IDebugDocumentContext2::Compare

Compares this document context to a given array of document contexts.

IDebugDocumentContext2::Seek

Moves the document context by a given number of statements or lines.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See Also

Reference

IDebugCanStopEvent2::GetDocumentContext

IDebugActivateDocumentEvent2::GetDocumentContext

IDebugStackFrame2::GetDocumentContext

IDebugCodeContext2::GetDocumentContext