set_breakpoint
Pause JavaScript execution in Chrome by setting a breakpoint with an exact URL or regex and line number to debug specific code.
Instructions
Set a breakpoint by URL (exact or regex) + line number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Exact script URL. Provide this or urlRegex; if both, urlRegex takes precedence. | |
| urlRegex | No | URL regex pattern. Provide this or url; if both, urlRegex takes precedence. | |
| condition | No | JS expression; breakpoint triggers only when truthy | |
| lineNumber | Yes | Line number (1-indexed) | |
| columnNumber | No | Column number, 1-indexed (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| breakpointId | Yes | ||
| resolvedLocations | Yes | May be empty if the script is not loaded yet; the breakpoint will bind automatically when Chrome parses the script |