mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2abaac10aa
Don't ignore stdout and stderr when using pipe for remote debugging and dumpio is true. In that case puppeteer process connects to the stdout/stderr streams of the child process and it will not hang.
9 lines
303 B
JavaScript
9 lines
303 B
JavaScript
(async() => {
|
|
const [, , puppeteerRoot, options] = process.argv;
|
|
const browser = await require(puppeteerRoot).launch(JSON.parse(options));
|
|
const page = await browser.newPage();
|
|
await page.evaluate(() => console.error('message from dumpio'));
|
|
await page.close();
|
|
await browser.close();
|
|
})();
|