IDkmRuntimeStepper.OwnsCurrentExecutionLocation 方法

定义

在搜索监视器以执行步骤时,步进管理器将调用 OwnsCurrentExecutionLocation。 如果此监视器理解调试对象中的当前位置,则可以在此处返回 true 以控制步骤。

public:
 bool OwnsCurrentExecutionLocation(Microsoft::VisualStudio::Debugger::DkmRuntimeInstance ^ runtimeInstance, Microsoft::VisualStudio::Debugger::Stepping::DkmStepper ^ stepper, Microsoft::VisualStudio::Debugger::Stepping::DkmStepArbitrationReason reason);
public bool OwnsCurrentExecutionLocation (Microsoft.VisualStudio.Debugger.DkmRuntimeInstance runtimeInstance, Microsoft.VisualStudio.Debugger.Stepping.DkmStepper stepper, Microsoft.VisualStudio.Debugger.Stepping.DkmStepArbitrationReason reason);
abstract member OwnsCurrentExecutionLocation : Microsoft.VisualStudio.Debugger.DkmRuntimeInstance * Microsoft.VisualStudio.Debugger.Stepping.DkmStepper * Microsoft.VisualStudio.Debugger.Stepping.DkmStepArbitrationReason -> bool
Public Function OwnsCurrentExecutionLocation (runtimeInstance As DkmRuntimeInstance, stepper As DkmStepper, reason As DkmStepArbitrationReason) As Boolean

参数

runtimeInstance
DkmRuntimeInstance

中DkmRuntimeInstance 类表示加载到 DkmProcess 中的执行环境,其中包含要调试的代码。

stepper
DkmStepper

中DkmStepper 表示用于单步执行线程的请求。 它简化了参与单步执行的各种运行时调试监视器之间的共享对象生存期。

reason
DkmStepArbitrationReason

中DkmStepArbitrationReason 发生步骤仲裁的原因。

返回

Boolean

弄如果运行时实例需要控制步骤,则应将此值设置为 true。 应将它设置为 false 以不接受控制。

适用于