Open Chrome from terminal with developer console open

前端 未结 4 1450
温柔的废话
温柔的废话 2021-02-18 17:18

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

相关标签:
4条回答
  • 2021-02-18 18:02

    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)

    0 讨论(0)
  • 2021-02-18 18:06

    Seems there is no such option. I added a feature request in Chrome product forum https://productforums.google.com/forum/#!category-topic/chrome/give-feature-feedback-and-suggestions/mac/Stable/3HYIAl8_ndc

    0 讨论(0)
  • 2021-02-18 18:16

    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.

    0 讨论(0)
  • 2021-02-18 18:18

    What exactly are you trying to achieve by that? If you are trying to run some kind of automated tests, you should try out PhantomJS.

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