Chrome Flags Reference

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

--debug-print

What does --debug-print do?

Enables support to debug printing subsystem.

Usage

CLILaunch Chrome with --debug-print using CLI

chrome --debug-print

PuppeteerLaunch Chrome with --debug-print using Puppeteer

const browser = await puppeteer.launch({
  args: ['--debug-print']
});

PlaywrightLaunch Chrome with --debug-print using Playwright

const browser = await chromium.launch({
  args: ['--debug-print']
});

SeleniumLaunch Chrome with --debug-print using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--debug-print')

driver = webdriver.Chrome(options=options)

Build Conditions

ANDROID!(CHROMEOS)MACWINENABLE_PRINT_PREVIEW && !OFFICIAL_BUILD