IDebugDocumentContext2

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at IDebugDocumentContext2.

This interface represents a position in a source file document.

IDebugDocumentContext2 : IUnknown  

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.

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

The following table shows the methods of IDebugDocumentContext2.

MethodDescription
GetDocumentGets the document that contains this document context.
GetNameGets the displayable name of the document that contains this document context.
EnumCodeContextsRetrieves a list of all code contexts associated with this document context.
GetLanguageInfoGets the language associated with this document context.
GetStatementRangeGets the file statement range of this document context.
GetSourceRangeGets the file source range of this document context.
CompareCompares this document context to a given array of document contexts.
SeekMoves the document context by a given number of statements or lines.

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

GetDocumentContext
GetDocumentContext
GetDocumentContext
GetDocumentContext

Show: