Compartir a través de


IDebugDocumentPosition2

This interface represents an abstract position in a source file.

IDebugDocumentPosition2 : IUnknown

Notes for Implementers

Visual Studio typically implements this interface. A debug engine (DE) would also implement this interface if it must supply its own source code (as when the DE implements the IDebugDocument2 interface).

Notes for Callers

This interface is passed in as an argument to IDebugProgram2::EnumCodeContexts. It is also supplied as part of a BP_LOCATION union (specifically, a BP_LOCATION_CODE_FILE_LINE structure) that is in turn part of the BP_REQUEST_INFO structure, that is used in creating a pending breakpoint.

Methods in Vtable Order

The following table shows the methods of IDebugDocumentPosition2.

Method

Description

IDebugDocumentPosition2::GetFileName

Gets the file name of the source file that contains this document position.

IDebugDocumentPosition2::GetDocument

Gets the containing document.

IDebugDocumentPosition2::IsPositionInDocument

Determines if this position is contained in the given document.

IDebugDocumentPosition2::GetRange

Gets the range for this document position.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See Also

Reference

IDebugProgram2::EnumCodeContexts

IDebugProgram2

BP_LOCATION_CODE_FILE_LINE