ruyi_set_breakpoint_on_text
Set soft breakpoints by injecting debugger statements into scripts that match a specified text, URL, or function name. Pause execution to debug browser automation without full CDP support.
Instructions
设置软断点(通过 preload script 注入 debugger 或 Proxy 包装)。支持 XHR/Fetch URL 断点和函数名匹配。⚠ 当前 BiDi 不支持完整的 CDP 式断点调试,此工具注入 debugger; 语句作为替代。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | 要匹配的代码文本、URL 片段或函数名。 | |
| pageIdx | No | ||
| condition | No | 断点条件(暂不支持,保留参数兼容性) | |
| urlFilter | No | 仅在 URL 匹配的脚本中注入 |