Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open Chrome from terminal with developer console open

Tags:

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.

like image 292
Maros Avatar asked Jul 02 '12 21:07

Maros


People also ask

How do I launch Chrome from terminal?

2. Type "chrome" without quotation marks to run Chrome from the terminal. Chrome is installed in your binary path, so no special directory is required.

How do I open Chrome in developer mode?

The Chrome OS has a Developer Mode that gives you root access to the operating system of your Chromebook. To enable Developer Mode, restart your laptop pressing the Esc, Refresh, and Power keys, then Ctrl+D. Developer Mode may void your warranty and make you susceptible to malware.


2 Answers

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)

like image 193
Dethariel Avatar answered Oct 05 '22 01:10

Dethariel


A Google employee maintains this list of automatically updated Chromium flags. There doesn't seem to be a flag for opening Chrome with developer console open.

like image 27
Maros Avatar answered Oct 05 '22 02:10

Maros