
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
puppeteer-debug
Advanced tools
Interrupt puppeteer/playwright for debug.
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()
})()
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
MIT
2.1.1/2021-12-18
FAQs
Interrupt puppeteer for debug.
The npm package puppeteer-debug receives a total of 185 weekly downloads. As such, puppeteer-debug popularity was classified as not popular.
We found that puppeteer-debug demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.