How to make Chrome always launch with remote-debugging-port flag

前端 未结 4 834
面向向阳花
面向向阳花 2020-12-14 03:00

I know I can launch chrome the following way to open a remote debugging port at 9222 port -

chrome.exe --remote-debugging-port=9222

But I

4条回答
  •  温柔的废话
    2020-12-14 03:52

    I can't add comments yet, But David Mann's answer is out of date for MacOS.

    Thankfully only one slight change is needed; Add the bash shebang to the Chrome Debugger script.

    #!/bin/bash
    /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222&
    

    this update for mac users was found here: Enable remote debugging on Chrome by default on mac?

    Nat Khun also went to the trouble of crafting a .dmg to allow for a "normal" installation procedure for mac users. His repo can be found here: https://github.com/natkuhn/Chrome-debug/

    be sure to give him a star. I did!

提交回复
热议问题