打开开发者控制台从终端打开Chrome [英] Open Chrome from terminal with developer console open
问题描述
我可以使用 $ google-chrome
从命令行运行谷歌浏览器,但是我可以通过打开开发者控制台打开它的标志,最好打开控制台选项卡?
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?
我检查了google-chrome的手册页,但它声明:
I checked the man page for google-chrome but it states that
Google Chrome拥有数百个未公开的命令行标志,这些标志是由开发人员随意添加和删除的。
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.
推荐答案
您正在寻找的国旗是 - auto-open-devtools-for-tabs 。请注意,在此设置生效之前,您应该退出Chrome 。
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.
至少在Chrome 55.0.2883.87 m最初版本的最新版本)
This has worked at least since Chrome 55.0.2883.87 m (the latest version as of initial post)
这篇关于打开开发者控制台从终端打开Chrome的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!