I am trying to open "remote debugging mode" in an already running chrome browser.
Here is the command I am executing:
chrome.exe --remote-debugging-port=9222 --user-data-dir="C:\Users\Ideal\AppData\Local\Google\Chrome\User Data"
But when I visit http://127.0.0.1:9222/json/version, nothing shows up.
However, if I close the browser and then run the same process, then http://127.0.0.1:9222/json/version works great.
So how can I open remote debugging mode in an already running Chrome browser?
Opening
remote debuggingmode in an already runningChrome browseris not directly supported by default, as the--remote-debugging-portflag is typically used to enableremote debuggingduring Chrome's startup. Once Chrome is running, changing this flag will not take effect.You can try creating a new
user profileon the fly and then use that profile to run Chrome withremote debugging enabled