(dbgmodel.h) 的 IDataModelScriptDebug 接口

脚本提供程序为使脚本可调试而必须提供的核心接口。 如果脚本可调试, 则 IDataModelScript 接口的实现类必须为 IDataModelScriptDebug 的 QueryInterface。

任何可调试的脚本都通过实现 IDataModelScript 的同一组件上存在 IDataModelScriptDebug 接口来指示此功能。 调试主机或托管数据模型的调试程序应用程序对此接口的查询指示存在调试功能。

继承

IDataModelScriptDebug 继承自 IUnknown。

方法

IDataModelScriptDebug 接口包含以下方法。

 
IDataModelScriptDebug::AddRef

IDataModelScriptDebug::AddRef 方法递增对象上接口的引用计数。
IDataModelScriptDebug::EnumerateBreakpoints

IDataModelScriptDebug::EnumerateBreakpoints 方法返回一个枚举器,该枚举器能够在启用脚本调试器时枚举每个断点。
IDataModelScriptDebug::FindBreakpointById

通过 SetBreakpoint 方法在脚本中创建的每个断点都分配有一个唯一标识符 (实现) 的 64 位无符号整数。
IDataModelScriptDebug::GetCurrentPosition

IDataModelScriptDebug::GetCurrentPosition 方法返回脚本调试器会话中的当前中断位置。
IDataModelScriptDebug::GetDebugState

GetDebugState 方法返回脚本的当前状态, (脚本是否) 执行。
IDataModelScriptDebug::GetEventFilter

IDataModelScriptDebug::GetEventFilter 方法返回是否为特定事件启用事件中断。
IDataModelScriptDebug::GetStack

IDataModelScriptDebug::GetStack 方法在脚本调试器会话中的中断位置获取当前调用堆栈。
IDataModelScriptDebug::QueryInterface

IDataModelScriptDebug::QueryInterface 方法检索指向对象上支持的接口的指针。
IDataModelScriptDebug::Release

IDataModelScriptDebug::Release 方法递减对象上接口的引用计数。
IDataModelScriptDebug::SetBreakpoint

启用脚本调试器时,IDataModelScriptDebug::SetBreakpoint 方法在脚本中设置断点。
IDataModelScriptDebug::SetEventFilter

IDataModelScriptDebug::SetEventFilter 方法更改特定事件的中断事件行为。
IDataModelScriptDebug::StartDebugging

IDataModelScriptDebug::StartDebugging 方法打开特定脚本的调试器,但不开始执行中断或单步执行。
IDataModelScriptDebug::StopDebugging

成功调用 StartDebugging 方法后,IDataModelScriptDebug::StopDebugging 方法停止调试活动。

注解

数据模型中脚本提供程序的基础结构还提供了有关调试脚本的概念。 任何希望向调试主机和托管数据模型的调试器应用程序公开调试功能的脚本都可以通过让可调试脚本实现 IDataModelScriptDebug 接口以及 IDataModelScript 接口来实现此目的。 脚本上存在此接口向基础结构表明该接口可调试。

虽然 IDataModelScriptDebug 接口是访问脚本提供程序的调试功能的起点,但它是由一组其他接口联接在一起提供整体调试功能。

IDataModelScriptDebug

IDataModelScriptDebugClient

IDataModelScriptDebugStack

IDataModelScriptDebugStackFrame

IDataModelScriptDebugVariableSetEnumerator

IDataModelScriptDebugBreakpoint

IDataModelScriptDebugBreakpointEnumerator

要求

要求
Header dbgmodel.h

另请参阅

调试器数据模型 C++ 概述