共用方式為


BP_REQUEST_INFO2

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

Contains the information required to implement a breakpoint, including vendor GUID, constraint and tracepoint.

Syntax

typedef struct _BP_REQUEST_INFO2 {
    BPREQI_FIELDS   dwFields;
    GUID            guidLanguage;
    BP_LOCATION     bpLocation;
    IDebugProgram2* pProgram;
    BSTR            bstrProgramName;
    IDebugThread2*  pThread;
    BSTR            bstrThreadName;
    BP_CONDITION    bpCondition;
    BP_PASSCOUNT    bpPassCount;
    BP_FLAGS        dwFlags;
    GUID            guidVendor;
    BSTR            bstrConstraint;
    BSTR            bstrTracepoint;
} BP_REQUEST_INFO2;
public struct BP_REQUEST_INFO2 {
    public uint           dwFields;
    public Guid           guidLanguage;
    public BP_LOCATION    bpLocation;
    public IDebugProgram2 pProgram;
    public string         bstrProgramName;
    public IDebugThread2  pThread;
    public string         bstrThreadName;
    public BP_CONDITION   bpCondition;
    public BP_PASSCOUNT   bpPassCount;
    public uint           dwFlags;
    public Guid           guidVendor;
    public string         bstrConstraint;
    public string         bstrTracepoint;
};

Members

dwFields
A combination of flags from the BPREQI_FIELDS enumeration that specifies which fields are filled out.

guidLanguage
The language GUID.

bpLocation
The BP_LOCATION structure that specifies the type of the breakpoint location.

pProgram
The IDebugProgram2 object that represents the application in which the breakpoint occurs.

bstrProgramName
The name of the application in which the breakpoint occurs.

pThread
The IDebugThread2 object that represents the thread in which the breakpoint occurs.

bstrThreadName
The name of the thread in which the breakpoint occurs.

bpCondition
The BP_CONDITION structure that describes the conditions under which the breakpoint will fire.

bpPassCount
The BP_PASSCOUNT structure that contains the pass count information of the breakpoint.

dwFlags
A combination of flags from the BP_FLAGS enumeration that specifies the flags for the requested breakpoint.

guidVendor
GUID of vendor. May be a null value.

bstrConstraint
Name of breakpoint constraint. May be a null value.

bstrTracepoint
Name of trace point. May be a null value.

Remarks

This structure is returned by the GetRequestInfo2 method.

Requirements

Header: msdbg.h

Namespace: Microsoft.VisualStudio.Debugger.Interop

Assembly: Microsoft.VisualStudio.Debugger.Interop.dll

See also