Chrome Flags Reference

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

--show-surface-damage-rects

What does --show-surface-damage-rects do?

Show rects in the HUD around damage as it is recorded into each render surface.

Usage

CLILaunch Chrome with --show-surface-damage-rects using CLI

chrome --show-surface-damage-rects

PuppeteerLaunch Chrome with --show-surface-damage-rects using Puppeteer

const browser = await puppeteer.launch({
  args: ['--show-surface-damage-rects']
});

PlaywrightLaunch Chrome with --show-surface-damage-rects using Playwright

const browser = await chromium.launch({
  args: ['--show-surface-damage-rects']
});

SeleniumLaunch Chrome with --show-surface-damage-rects using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--show-surface-damage-rects')

driver = webdriver.Chrome(options=options)