Is there a command line argument in Chrome to launch developer tools at startup?

Is there a command line argument in Chrome to launch developer tools at startup without having to press Ctrl + Shift + J each time?

+4
source share
2 answers

I did not find a way to do this via the command line, but the workaround that I use may be useful. At first it only works on Windows, although I suspect that similar things can be done on Mac and Linux as well.

I use Windows Scripting Host to send the key, as if they were programmed from the application. Keys.wsf file

<package> <job id="js"> <script language="JScript"> var shl = WScript.CreateObject("WScript.Shell"); var WINTITLE= "Chrome" shl.AppActivate(WINTITLE); WScript.sleep(500); shl.SendKeys ("^+i"); </script> </job> </package> 

If you know the Crome window title can help replace WINTITLE

+1
source

I think,

 --auto-open-devtools-for-tabs 

does the trick. It seems to work only if the Chrome instance is not working yet.

+4
source

Source: https://habr.com/ru/post/1345158/


All Articles