Skip to content

Connect Android to Chrome/PC for Remote Debugging #43

@ndrean

Description

@ndrean

Generated by ChatGPT

  1. Enable USB Debugging on Your Android Phone- Go to Settings > About Phone.- Tap Build Number 7 times to enable Developer Mode.- Go back to Settings > Developer Options.
  • Enable USB Debugging.
  1. Connect Your Phone to the Computer via USB
  • Use a USB cable to connect your Android phone to your computer.
  • On your phone, when prompted, allow USB Debugging by tapping Allow/OK.
  1. Open Chrome on Your Computer
  • Open Google Chrome on your computer.
  • Type chrome://inspect in the address bar and press Enter.
  1. Allow Device Detection
  • Ensure "Discover USB devices" is checked in chrome://inspect.
  • If your device doesn’t appear:
    • Ensure ADB drivers are installed (on Windows).
    • Make sure your phone is unlocked and connected properly.
    • Port forwarding... is optional and not required for device detection—it’s for routing specific local ports.
  1. Open Chrome on Your Android Phone
  • Open Google Chrome on your Android phone.
  • Navigate to the webpage you want to inspect.
  1. Inspect the Page on Your Computer
  • In chrome://inspect, under Devices, your phone should appear.
  • Under Remote Target, the currently open Chrome tabs will be listed.

Click Inspect next to the page you want to debug.

  1. Optional: Remote Debugging via Wi-Fi (No USB)
  • If you prefer wireless debugging, connect your phone and computer to the same Wi-Fi.
  • On your phone, go to Developer options > Wireless debugging and enable it.
  • Tap Pair device with pairing code, or Pair using QR code (depending on your Android version).
  • Use the pairing code or port/IP provided.

If the system has ADB (Android Debug Bridge) to connect:

adb pair <ip-address>:<pairing-port>  # Only if pairing is needed
adb connect <ip-address>:<debug-port> # This port is shown in Wireless debugging

(Find the IP and port in Wireless Debugging settings.)

Now you can inspect and debug Chrome tabs from your computer!

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions