Chrome的--auto-open-devtools-for-tabs [英] Chrome's --auto-open-devtools-for-tabs
问题描述
我试图通过命令行开关-auto-open-devtools-for-tabs
从快捷方式启动chrome时,自动打开devtools。
I'm trying to get the devtools to open automatically when starting chrome from a shortcut with a command line switch --auto-open-devtools-for-tabs
.
即该快捷方式的路径为: C:\Program Files(x86)\Google\Chrome\Application\chrome.exe -incognito -auto-open-devtools-for-tabs
(或--auto-open-devtools-for-tabs)。
i.e. the path of that shortcut is: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -incognito -auto-open-devtools-for-tabs
(or --auto-open-devtools-for-tabs).
但两者似乎都没有打开开发工具,也没有确实在cmd chrome.exe -auto-open-devtools-for-tabs
(或--auto-open-devtools-for-tabs)中输入Chrome的文件夹。
But both don't seem to open the dev tools, neither does entering in the cmd chrome.exe -auto-open-devtools-for-tabs
(or --auto-open-devtools-for-tabs), of course when in Chrome's folder.
也许我做错了吗?
命令来自:
http://peter.sh/experiments/chromium-command-line-switches/#auto-open-devtools-for-tabs
https://stackoverflow.com/a/41452619/4279201
推荐答案
此标志仅在您打开第一个chrome实例时适用。
This flag only applies when you open the first chrome instance.
- 关闭所有chrome wind ows
- 运行
C:\Program Files(x86)\Google\Chrome\Application\chrome.exe-隐身-自动打开-devtools-for-tabs
- Close all chrome windows
- Run
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -incognito -auto-open-devtools-for-tabs
如果您想要使用所有选项卡但没有devtools的日常浏览器,在调试具有自动打开的devtools的网站的同时,您必须分别运行它们。
If you want your daily browser, with all tabs but without devtools, at the same time as you're debugging a website with devtools automatically opening, you have to run them separately.
替代方法:稳定+ Beta
一个示例是使用示例Chrome稳定版和Chrome Beta。
One example is to use example Chrome stable and Chrome beta.
C :\程序文件(x86)\Google\Chrome\Application\chrome.exe
C:\Program Files(x86)\Google\Chrome Beta\Application\chrome.exe --auto-open-devtools-for-tabs
替代:data-dir
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe -incognito --auto-open-devtools-for-tabs --user-data-dir =%APPDATA%\ChromeDevOrAnyName
这篇关于Chrome的--auto-open-devtools-for-tabs的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!