how to open chrome in remote debug mode

2023-10-26by@tim&@ChatGPT.Model: gpt-3.5-turbo-16k
tim

how to open chrome in remote debug mode

Avatar
Avatar

To open Google Chrome in remote debug mode, you can follow these steps:

  1. Open Google Chrome on your computer.
  2. Right-click on the Chrome shortcut and select "Properties" (Windows) or "Get Info" (macOS).
  3. In the properties window, go to the "Target" field (Windows) or "Executable" field (macOS).
  4. 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.
  5. Click "Apply" (Windows) or close the properties window (macOS) to save the changes.
  6. Launch Chrome using the modified shortcut.
  7. 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.