Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

puppeteer-debug

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puppeteer-debug

Interrupt puppeteer for debug.

  • 2.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
347
decreased by-25.54%
Maintainers
1
Weekly downloads
 
Created
Source

puppeteer-debug

Interrupt puppeteer/playwright for debug.

Usage

puppeteer
const puppeteer = require('puppeteer')
const debug = require('puppeteer-debug')

;(async () => {
  const browser = await puppeteer.launch({
    headless: false
  })
  const page = await browser.newPage()
  await debug({ browser, page, ... }) // pass initial context(must be object) to REPL.
  await browser.close()
})()
playwright
const playwright = require('playwright')
const debug = require('puppeteer-debug')

;(async () => {
  const browser = await playwright.chromium.launch({
    headless: false
  })
  const page = await browser.newPage()
  await debug({ browser, page, ... }) // pass initial context(must be object) to REPL.
  await browser.close()
})()

In REPL:

> page.goto('https://google.com')
> page.type('input', 'hello, world!')
> page.click('input[type=submit]')
...
> this.page2 = await browser.newPage()
> this.page2.goto('https://google.com') // or page2.goto('https://google.com')

Use CTRL+C exit REPL.

NOTE: If you define custom variables, please mount to this, eg: this.xxx = yyy

License

MIT

Keywords

FAQs

Package last updated on 18 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc