Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--wait-for-debugger-children

What does --wait-for-debugger-children do?

Will add kWaitForDebugger to every child processes. If a value is passed, it will be used as a filter to determine if the child process should have the kWaitForDebugger flag passed on or not.

Usage

CLILaunch Chrome with --wait-for-debugger-children using CLI

chrome --wait-for-debugger-children

PuppeteerLaunch Chrome with --wait-for-debugger-children using Puppeteer

const browser = await puppeteer.launch({
  args: ['--wait-for-debugger-children']
});

PlaywrightLaunch Chrome with --wait-for-debugger-children using Playwright

const browser = await chromium.launch({
  args: ['--wait-for-debugger-children']
});

SeleniumLaunch Chrome with --wait-for-debugger-children using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--wait-for-debugger-children')

driver = webdriver.Chrome(options=options)

Build Conditions

LOAD_WEBUI_FROM_DISK