set_breakpoint_on_text
Sets a breakpoint on specific text in loaded scripts to debug JavaScript code. Use after analyzing function bodies to avoid minified code issues.
Instructions
Finds a text string in all loaded scripts and sets a breakpoint at that location. CRITICAL AI WORKFLOW WARNING: Do NOT set breakpoints on function names or assignment statements (e.g., 'funcName = function'). In minified code, this will break on the one-time assignment rather than the execution. Instead, ALWAYS use get_script_source to read the function body first, then set the breakpoint on a specific statement INSIDE the function body (e.g., 'var x=', 'return').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| case_sensitive | No | ||
| condition | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |