Muokkaa

Jaa


IDebugFunctionPosition2

This interface represents an abstract position of a function in a source document.

Syntax

IDebugFunctionPosition2 : IUnknown

Notes for Implementers

The debug engine (DE) implements this interface to represent the position of a function within a source document.

Notes for Callers

This interface is supplied as part of a BP_LOCATION union (specifically, a BP_LOCATION_CODE_FUNC_OFFSET structure) that is in turn part of the BP_REQUEST_INFO structure, used in creating a pending breakpoint.

Methods in Vtable Order

The following table shows the methods of IDebugFunctionPosition2.

Method Description
GetFunctionName Gets the name of the function that this position is relative to.
GetOffset Gets the offset from the beginning of the function.

Remarks

The position represented by this interface is text-based, specifically, a TEXT_POSITION structure.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also