Chrome Flags Reference

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

--enable-gpu-service-logging

What does --enable-gpu-service-logging do?

Enable GPU service logging. Note: This is the same switch as the one in gl_switches.cc. It's defined here again to avoid dependencies between dlls.

Usage

CLILaunch Chrome with --enable-gpu-service-logging using CLI

chrome --enable-gpu-service-logging

PuppeteerLaunch Chrome with --enable-gpu-service-logging using Puppeteer

const browser = await puppeteer.launch({
  args: ['--enable-gpu-service-logging']
});

PlaywrightLaunch Chrome with --enable-gpu-service-logging using Playwright

const browser = await chromium.launch({
  args: ['--enable-gpu-service-logging']
});

SeleniumLaunch Chrome with --enable-gpu-service-logging using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--enable-gpu-service-logging')

driver = webdriver.Chrome(options=options)