共用方式為


IDebugFunctionPosition2

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

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

IDebugFunctionPosition2::GetFunctionName

Gets the name of the function that this position is relative to.

IDebugFunctionPosition2::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

Reference

BP_LOCATION_CODE_FUNC_OFFSET

BP_LOCATION

TEXT_POSITION

Concepts

Core Interfaces