GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Playwright for Java
  • Docs
  • API
  • Java
  • Node.js
  • Python
  • .NET
  • Community
  • Classes
  • APIRequestContext
  • APIResponse
  • Browser
  • BrowserContext
  • BrowserType

This view

  • Original page
  • New address

GeezerVison is showing playwright.dev — Debugger | Playwright Java

API for controlling the Playwright debugger. The debugger allows pausing script execution and inspecting the page. Obtain the debugger instance via BrowserContext.debugger().


Methods​

next​

Added in: v1.59 debugger.next

Resumes script execution and pauses again before the next action. Throws if the debugger is not paused.

Usage

Debugger.next();

Returns

  • void#

pausedDetails​

Added in: v1.59 debugger.pausedDetails

Returns details about the currently paused call. Returns null if the debugger is not paused.

Usage

Debugger.pausedDetails();

Returns

  • null | PausedDetails#
    • location Location

      • file String

      • line int (optional)

      • column int (optional)

    • title String


requestPause​

Added in: v1.59 debugger.requestPause

Configures the debugger to pause before the next action is executed.

Throws if the debugger is already paused. Use Debugger.next() or Debugger.runTo() 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.

Usage

Debugger.requestPause();

Returns

  • void#

resume​

Added in: v1.59 debugger.resume

Resumes script execution. Throws if the debugger is not paused.

Usage

Debugger.resume();

Returns

  • void#

runTo​

Added in: v1.59 debugger.runTo

Resumes script execution and pauses when an action originates from the given source location. Throws if the debugger is not paused.

Usage

Debugger.runTo(location);

Arguments

  • location Location#

    • setFile String

    • setLine int (optional)

    • setColumn int (optional)

    The source location to pause at.

Returns

  • void#

Events​

onPausedStateChanged(handler)​

Added in: v1.59 debugger.onPausedStateChanged(handler)

Emitted when the debugger pauses or resumes.

Usage

Debugger.onPausedStateChanged(handler)
  • Methods
    • next
    • pausedDetails
    • requestPause
    • resume
    • runTo
  • Events
    • onPausedStateChanged(handler)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.