Chrome Flags Reference

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

--allow-sandbox-debugging

What does --allow-sandbox-debugging do?

Allows debugging of sandboxed processes (see zygote_main_linux.cc).

Usage

CLILaunch Chrome with --allow-sandbox-debugging using CLI

chrome --allow-sandbox-debugging

PuppeteerLaunch Chrome with --allow-sandbox-debugging using Puppeteer

const browser = await puppeteer.launch({
  args: ['--allow-sandbox-debugging']
});

PlaywrightLaunch Chrome with --allow-sandbox-debugging using Playwright

const browser = await chromium.launch({
  args: ['--allow-sandbox-debugging']
});

SeleniumLaunch Chrome with --allow-sandbox-debugging using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--allow-sandbox-debugging')

driver = webdriver.Chrome(options=options)