API for controlling the Playwright debugger. The debugger allows pausing script execution and inspecting the page.
Obtain the debugger instance via
browserContext.debugger.
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.
Returns Promise<void>
resume
resume(): Promise<void>
Resumes script execution. Throws if the debugger is not paused.
Returns Promise<void>
runTo
runTo(location): Promise<void>
Resumes script execution and pauses when an action originates from the given source location. Throws if the
debugger is not paused.
API for controlling the Playwright debugger. The debugger allows pausing script execution and inspecting the page. Obtain the debugger instance via browserContext.debugger.