Debugging over USB

This translation is incomplete. Please help translate this article from English

If you're trying to connect to a Firefox instance running on the Android OS and it doesn't show up, here are some things you can try:

  • Make sure you have enabled remote debugging in Firefox: open Firefox for Android, open its menu, select Settings, and then check the checkbox at Advanced > Remote debugging via USB.

  • Make sure that USB debugging is allowed in the device's developer settings. See Android Debug Bridge for more information about debugging on an Android device.

  • If you still do not see your device in the about:debugging sidebar, try toggling Remote debugging on the phone.
    • Disconnect your device from your computer and turn off Remote debugging on the phone.
    • Reconnect the device and turn on Remote debugging - this restarts the debugger instance on the phone.
    • Try connecting again
    • If you are using Fenix, make sure that you have opened a page in the browser.
    • Trying changing the Default USB Configuration option to another mode, suchas File transfer (MTP), PTP, or Camera mode.
  • Check the USB cable you are using:
    • Try unplugging and replugging in the USB cable.
    • Try plugging the USB cable into a different port on your computer. You may have to alternate between ports.
    • Try a different USB cable. The cables that come with phones are often of poor quality and fail often.
    • Try a shorter USB cable. Long USB cables have been known to not work so well.
  • If you use Linux:
    • Make sure you added a udev rules file, as documented in step 3 of this guide to setting up an Android device. The Android list of idVendor values may help. Next, run the adb devices to make sure your device is in the list. If device appears to be "no permission", you need to restart adb server (e.g. adb kill-server;adb start-server).
    • If you use the android-tools-adb package from Debian, ADB Helper may force any existing ADB server to close. This package disables TCP connections to the server, which ADB Helper relies on.
  • If you use Windows:
    • Make sure that your Android device is recognized correctly and that it is using the Google USB Driver that is included with the Android SDK.
  • If you use macOS:
    • If you're an EasyTether user, you will need to uninstall or disable EasyTether: sudo kextunload /System/Library/Extensions/EasyTetherUSBEthernet.kext