Search code examples
shellgoogle-chromeconsoleterminalcommand-line-arguments

Open Chrome from terminal with developer console open


I can run Google Chrome from the command line using $ google-chrome, but what flag can I pass to open it with developer console already open, preferably open to the console tab?

I checked the man page for google-chrome but it states that

Google Chrome has hundreds of undocumented command-line flags that are added and removed at the whim of the developers.

I'm hoping one of those undocumented flags does what I want.


Solution

  • The flag you're looking for is --auto-open-devtools-for-tabs. Please note, that you should quit Chrome before this setting will take effect.

    This has worked at least since Chrome 55.0.2883.87 m (the latest version as of initial post)