set_breakpoint
Set breakpoints by exact script URL or URL regex on any line in Electron main or renderer processes. Supports conditional expressions to pause only when conditions are met.
Instructions
Set a breakpoint by script URL or URL regex in the main process or a renderer page. Works on bundled scripts too — use urlRegex to match a distinctive part of the script path (e.g. "app.asar.*main"). Use get_paused_state to observe hits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Exact script URL. | |
| pageId | No | Page id from list_pages, or "main" (default) for the main process. | |
| urlRegex | No | Regex matched against script URLs (alternative to url). | |
| condition | No | Conditional breakpoint expression. | |
| sessionId | Yes | Session id returned by launch_app. | |
| lineNumber | Yes | Line number (0-based). | |
| columnNumber | No | Column number (0-based). |