跳到主要内容

EventBreakpoints🧪

EventBreakpoints 允许在从 JavaScript 调用的原生代码中发生的操作和事件上设置 JavaScript 断点。一旦断点被命中,将通过 Debugger 域进行报告,类似于常规断点被命中的情况。

EN
EventBreakpoints permits setting JavaScript breakpoints on operations and events occurring in native code invoked from JavaScript. Once breakpoint is hit, it is reported through Debugger domain, similarly to regular breakpoints being hit.

✅️️ Methods

🔨EventBreakpoints.disable

移除所有断点

EN
Removes all breakpoints

🔨EventBreakpoints.removeInstrumentationBreakpoint

移除特定原生事件上的断点。

EN
Removes breakpoint on particular native event.
参数必填标记类型描述原文
eventName✔️string要在其上停止的检测名称。
ENInstrumentation name to stop on.

🔨EventBreakpoints.setInstrumentationBreakpoint

在特定的原生事件上设置断点。

EN
Sets breakpoint on particular native event.
参数必填标记类型描述原文
eventName✔️string在停止时使用的检测名称。
ENInstrumentation name to stop on.