waitForSpecificPause
Waits for the next debugger pause and verifies it occurs at the target script line. Returns matched status so you can inspect variables or resume and retry.
Instructions
[STEP 5b — PREFERRED] BLOCKING call — waits for the next debugger pause, then checks if it matches the target location.
⚠️ NO AUTO-RESUME: execution stays paused after this returns, regardless of matched value. You decide what to do based on the "matched" field in the response: matched=true → call getScopeVariables() immediately to read variables matched=false → the wrong breakpoint fired; call resume() to continue, then call waitForSpecificPause() again if you need to wait for the next pause.
Must be called IMMEDIATELY after reloadPage() in the SAME AI turn. Before blocking, sends a notification to the user to trigger the page action. Editor line N → pass line=N-1 (CDP uses 0-based line numbers). Relay the "_ui" field from the response to the user once it returns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | 0-based line number where debugger; was inserted. Editor line N → pass N-1. | |
| timeout | No | Timeout in ms to wait for any pause (default 90000). Increase for slow interactions. | |
| actionHint | No | Describe the page action to trigger the breakpoint (e.g. 'click the Search button'). Shown in the waiting notification to the user. | |
| urlFragment | Yes | Substring of the script URL where debugger; was added (e.g. 'LoginForm.vue', 'utils.ts'). Does NOT need to be the full URL. | |
| lineTolerance | No | ±line tolerance for Tier 1 matching (default 10). Increase to 20+ for heavily bundled code. |