Condividi tramite


DkmPendingDataBreakpoint.Create Method

Definition

Creates a new pending breakpoint object. After creation, the returned object will still be disabled and will not be tracked by the breakpoint manager. To complete initialization, the caller should set additional properties on the breakpoint and 'Enable' or 'Enroll' it. The caller is responsible for closing the created object after they are done.

public:
 static Microsoft::VisualStudio::Debugger::Breakpoints::DkmPendingDataBreakpoint ^ Create(Microsoft::VisualStudio::Debugger::DkmProcess ^ Process, Guid SourceId, Microsoft::VisualStudio::Debugger::Evaluation::DkmCompilerId CompilerId, Microsoft::VisualStudio::Debugger::DkmThread ^ Thread, bool IsBarrier, System::String ^ DataElementLocation, int Size, Microsoft::VisualStudio::Debugger::DkmDataItem ^ DataItem);
public static Microsoft.VisualStudio.Debugger.Breakpoints.DkmPendingDataBreakpoint Create (Microsoft.VisualStudio.Debugger.DkmProcess Process, Guid SourceId, Microsoft.VisualStudio.Debugger.Evaluation.DkmCompilerId CompilerId, Microsoft.VisualStudio.Debugger.DkmThread Thread, bool IsBarrier, string DataElementLocation, int Size, Microsoft.VisualStudio.Debugger.DkmDataItem DataItem);
public static Microsoft.VisualStudio.Debugger.Breakpoints.DkmPendingDataBreakpoint Create (Microsoft.VisualStudio.Debugger.DkmProcess Process, Guid SourceId, Microsoft.VisualStudio.Debugger.Evaluation.DkmCompilerId CompilerId, Microsoft.VisualStudio.Debugger.DkmThread? Thread, bool IsBarrier, string DataElementLocation, int Size, Microsoft.VisualStudio.Debugger.DkmDataItem? DataItem);
static member Create : Microsoft.VisualStudio.Debugger.DkmProcess * Guid * Microsoft.VisualStudio.Debugger.Evaluation.DkmCompilerId * Microsoft.VisualStudio.Debugger.DkmThread * bool * string * int * Microsoft.VisualStudio.Debugger.DkmDataItem -> Microsoft.VisualStudio.Debugger.Breakpoints.DkmPendingDataBreakpoint
Public Shared Function Create (Process As DkmProcess, SourceId As Guid, CompilerId As DkmCompilerId, Thread As DkmThread, IsBarrier As Boolean, DataElementLocation As String, Size As Integer, DataItem As DkmDataItem) As DkmPendingDataBreakpoint

Parameters

Process
DkmProcess

[In] DkmProcess represents a target process which is being debugged. The debugger debugs processes, so this is the basic unit of debugging. A DkmProcess can represent a system process or a virtual process such as minidumps.

SourceId
Guid

[In] Identifies the source of an object. SourceIds are used to enable filtering in scenarios when multiple components may be creating instances of a class. For example, source ids can be used to determine if a breakpoint comes from the AD7 AL (ex: user breakpoint, or other breakpoint visible at the SDM level) instead of a breakpoint which may be created by another component (for example an internal breakpoint used for stepping).

CompilerId
DkmCompilerId

[In] Identifies the source language (ex: C#) and compiler vendor (ex: Microsoft) that the breakpoint should bind against. 'LanguageId' may be left as Guid.Empty to indicate that the breakpoint should bind against all languages. 'VendorId' is nearly always left as Guid.Empty, which indicates that only the language is known (not the compiler).

Thread
DkmThread

[In,Optional] Thread on which this breakpoint should fire. If null, the breakpoint will fire on all threads.

IsBarrier
Boolean

[In] Indicates if this breakpoint is a barrier that should be set on the hardware, this works for GPU debugging.

DataElementLocation
String

[In] Indicates the location of the data value to watch.

Size
Int32

[In] Specifies the size of the location, in bytes, to monitor for access. Valid sizes may depend on the target processor (x86, x64, etc) and type of code being debugging. For example, native code utilizes the CPU's breakpoint registers, and x86-based processor supports sizes of 1, 2, and 4.

DataItem
DkmDataItem

[In,Optional] Data object to add to the new DkmPendingDataBreakpoint instance. Pass 'null' in the case that the caller doesn't need to add a data item.

Returns

[Out] Result of this method call.

Applies to