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

前端 未结 4 847
面向向阳花
面向向阳花 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:51

    I have figured out a way to solve my problem statement. I am posting it as an answer as it may help someone else with similar problem statements.

    If you are on Windows, go to registry editor and search this command

    Computer\HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command
    

    Modify the key with the following -

    "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222 -- "%1"
    

    If you want to play with Chrome, put --incognito if you always want to launch Chrome in incognito mode.

    Caution: Please backup your registry before playing with it.

提交回复
热议问题