共用方式為


BP_LOCATION_CODE_FUNC_OFFSET

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Describes the offset location of a breakpoint in a function in code.

Syntax

typedef struct _BP_LOCATION_CODE_FUNC_OFFSET {
    BSTR                     bstrContext;
    IDebugFunctionPosition2* pFuncPos;
} BP_LOCATION_CODE_FUNC_OFFSET;

Members

bstrContext
The context of the breakpoint, typically a method or function name as seen on a call stack.

pFuncPos
The IDebugFunctionPosition2 object that describes the name of the function and the relative position from the beginning of the function.

Remarks

This structure is a member of the BP_LOCATION structure as part of a union.

The pFuncPos member indicates where to set the function breakpoint.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also