- Launch Google Chrome with Remote Debugging
Open Terminal and run:open -a "Google Chrome" --args --remote-debugging-port=9222
- Create a shortcut to Chrome
- Right-click > Properties
- Add to target:
--remote-debugging-port=9222 - Apply changes
- Use this shortcut to launch Chrome
google-chrome --remote-debugging-port=9222-
Verify Chrome's Command Line Parameters
To confirm that Chrome is running with the correct remote debugging flag, open the following URL in Chrome:chrome://version/Under the section titled "Command Line", ensure that the parameter
--remote-debugging-port=9222is present. This confirms that Chrome is ready to accept remote debugging sessions. -
Check if Remote Debugging is Active
In your browser, navigate to the following URL to check if Chrome’s debugging is accessible:http://localhost:9222/json/version/If everything is set up correctly, you should receive a JSON response similar to this:
{ "Browser": "Chrome/129.0.6668.101", "Protocol-Version": "1.3", "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36", "V8-Version": "12.9.202.27", "WebKit-Version": "537.36 (@129d018cd38423003cd025fe9ef01c75a897203b)", "webSocketDebuggerUrl": "ws://localhost:9222/devtools/browser/5c17626d-5a62-4060-8f17-dc20ff9609de" }This response confirms that the remote debugging service is active and ready for connections.
If you don’t already have a GitHub authentication token, follow these steps:
- Visit GitHub's Personal Access Tokens page.
- Click Generate new token.
- Select the appropriate scopes required for your repository access.
- Once generated, store the token safely for use with Git operations.
For more details, check out this GitHub discussion on generating access tokens.