To open Google Chrome in remote debug mode, you can follow these steps:
- Open Google Chrome on your computer.
- Right-click on the Chrome shortcut and select "Properties" (Windows) or "Get Info" (macOS).
- In the properties window, go to the "Target" field (Windows) or "Executable" field (macOS).
- At the end of the field, add a space and then "--remote-debugging-port=9222". So, the field should look something like this:
- For Windows: "C:\Program Files\Google\Chrome\Application\chrome.exe" --remote-debugging-port=9222
- For macOS: /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
Note: The path to the Chrome executable may vary based on your installation.
- Click "Apply" (Windows) or close the properties window (macOS) to save the changes.
- Launch Chrome using the modified shortcut.
- Chrome will now start in remote debug mode and listen on port 9222 for debugging connections.
You can then use a tool like Chrome DevTools or a remote debugging client to connect to the Chrome instance running in remote debug mode.