Chrome's --auto-open-devtools-for-tabs

前端 未结 1 1925
一整个雨季
一整个雨季 2021-02-14 19:31

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.

i.e. t

相关标签:
1条回答
  • 2021-02-14 20:14

    This flag only applies when you open the first chrome instance.

    1. Close all chrome windows
    2. Run "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -incognito -auto-open-devtools-for-tabs

    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.

    Alternative: Stable + Beta

    One example is to use example Chrome stable and Chrome beta.

    "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"

    "C:\Program Files (x86)\Google\Chrome Beta\Application\chrome.exe" --auto-open-devtools-for-tabs

    Alternative: data-dir

    "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -incognito --auto-open-devtools-for-tabs --user-data-dir="%APPDATA%\ChromeDevOrAnyName"

    0 讨论(0)
提交回复
热议问题