共用方式為


BP_LOCATION_CODE_STRING

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

Used for setting code breakpoints based on a string that the user can enter from the integrated development environment (IDE).

Syntax

typedef struct _BP_LOCATION_CODE_STRING {
    BSTR bstrContext;
    BSTR bstrCodeExpr;
} BP_LOCATION_CODE_STRING;

Members

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

bstrCodeExpr
The string that the user types in to describe the code breakpoint.

Remarks

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

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also