Emitted when the debugger pauses or resumes.
Resumes script execution and pauses again before the next action. Throws if the debugger is not paused.
Removes an event listener added by on or addListener.
Emitted when the debugger pauses or resumes.
Adds an event listener that will be automatically removed after it is triggered once. See addListener for more information about this event.
Emitted when the debugger pauses or resumes.
Removes an event listener added by on or addListener.
Configures the debugger to pause before the next action is executed.
Throws if the debugger is already paused. Use debugger.next() or debugger.runTo(location) to step while paused.
Note that page.pause() is equivalent to a "debugger" statement — it pauses execution at the call site immediately. On the contrary, debugger.requestPause() is equivalent to "pause on next statement" — it configures the debugger to pause before the next action is executed.
Resumes script execution. Throws if the debugger is not paused.
Resumes script execution and pauses when an action originates from the given source location. Throws if the debugger is not paused.
The source location to pause at.
API for controlling the Playwright debugger. The debugger allows pausing script execution and inspecting the page. Obtain the debugger instance via browserContext.debugger.