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 .NET
  • Docs
  • API
  • .NET
  • Node.js
  • Python
  • Java
  • Community
  • Classes
  • APIRequestContext
  • APIResponse
  • Browser
  • BrowserContext
  • BrowserType

This view

  • Original page
  • New address

GeezerVison is showing playwright.dev — Debugger | Playwright .NET

This is unreleased documentation for Playwright .NET Next version.
For up-to-date documentation, see the latest version (stable).
Version: Next

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


Methods​

NextAsync​

Added in: v1.59 debugger.NextAsync

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

Usage

await Debugger.NextAsync();

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

  • PausedDetails?#
    • location Location

      • file string

      • line int? (optional)

      • column int? (optional)

    • title string


RequestPauseAsync​

Added in: v1.59 debugger.RequestPauseAsync

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

Throws if the debugger is already paused. Use Debugger.NextAsync() or Debugger.RunToAsync() to step while paused.

Note that Page.PauseAsync() is equivalent to a "debugger" statement — it pauses execution at the call site immediately. On the contrary, Debugger.RequestPauseAsync() is equivalent to "pause on next statement" — it configures the debugger to pause before the next action is executed.

Usage

await Debugger.RequestPauseAsync();

Returns

  • void#

ResumeAsync​

Added in: v1.59 debugger.ResumeAsync

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

Usage

await Debugger.ResumeAsync();

Returns

  • void#

RunToAsync​

Added in: v1.59 debugger.RunToAsync

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

Usage

await Debugger.RunToAsync(location);

Arguments

  • location Location#

    • File string

    • Line int? (optional)

    • Column int? (optional)

    The source location to pause at.

Returns

  • void#

Events​

event PausedStateChanged​

Added in: v1.59 debugger.event PausedStateChanged

Emitted when the debugger pauses or resumes.

Usage

Debugger.PausedStateChanged += async (_, void) => {};
  • Methods
    • NextAsync
    • PausedDetails
    • RequestPauseAsync
    • ResumeAsync
    • RunToAsync
  • Events
    • event PausedStateChanged
You are visitor 01402775 — 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.