Test on 50,000+ Real Android and iOS Devices
Live and Automated Real Device Testing on 50,000+ iOS and Android Devices. No Need to Buy or Maintain Device Lab
Firefox Remote Debugging on Android: USB and Wi-Fi Guide
Set up Firefox remote debugging on Android over USB or Wi-Fi with about:debugging and adb, inspect mobile tabs in desktop DevTools, and fix connection issues.
Last Updated on:
A page that looks right in desktop Firefox can still break in Firefox for Android, and the quickest way to find out why is to inspect the phone's tab from your desktop DevTools.
Firefox does this through the about:debugging page, which connects to Firefox for Android over USB or, on Android 11 and later, over Wi-Fi. According to the Firefox about:debugging documentation, you only need adb on the computer, not the full Android Studio SDK.
TL;DR
To remote debug Firefox for Android, turn on USB debugging on the phone and Remote debugging via USB in Firefox for Android, connect the phone, then open about:debugging in desktop Firefox. Click Enable USB Devices, Connect, and Inspect on the tab you want to debug.
- about:debugging: The desktop Firefox page that lists connected Android devices and opens a DevTools toolbox for any tab running in Firefox for Android.
- USB connection: Firefox remote debugging over USB needs adb on the computer, USB debugging in Android Developer options, and Remote debugging via USB in Firefox for Android settings.
- Wi-Fi connection: On Android 11 or later, Firefox remote debugging works without a cable after you pair the phone with adb pair and adb connect from its Wireless debugging screen.
- --remote-debugging-port: This desktop Firefox flag starts the Remote Agent for WebDriver BiDi automation on localhost:9222 by default. It does not connect DevTools to an Android phone.
What if you need more devices than the phone on your desk?
TestMu AI Real Device Cloud gives you real Android phones with Chrome DevTools in the session, and TestMu AI Real-Time Testing opens Firefox DevTools on desktop Firefox versions.
Prerequisites for Firefox Remote Debugging
- Desktop Firefox - a current release on Windows, macOS, or Linux. The latest Firefox version page lists the current build number.
- adb - Android Debug Bridge from Android SDK Platform Tools, on the same computer as desktop Firefox.
- Firefox for Android - installed on the phone you want to debug.
- A USB cable or Android 11+ - USB works for any connection; cable-free debugging needs Android 11 or later on the phone.
If you also debug Chrome on the same phone, the Chrome remote debugging guide covers the chrome://inspect flow, which uses the same adb connection.
How to Enable Remote Debugging on Android
- Open Settings > About phone and tap Build number seven times until "You are now a developer!" appears. The path differs by manufacturer; the Android developer options guide lists the Pixel and Samsung locations.
- Turn on USB debugging in Developer options. On Android 9 and later it sits under Settings > System > Advanced > Developer options.
- Open Firefox for Android, go to Settings, and turn on Remote debugging via USB in the Advanced section.
- Connect the phone with a USB cable and run
adb deviceson the computer. If the phone shows as unauthorized, accept the USB debugging prompt on its screen and run the command again.
adb devicesHow to Connect From about:debugging
On the computer, type about:debugging in the desktop Firefox address bar and open the Setup tab. The screenshot below is the Setup tab in Firefox 157.0.1, captured on a TestMu AI cloud Windows 11 machine with no phone attached, so USB reads Disabled and the sidebar shows No devices discovered.

- Click Enable USB Devices. The Setup tab notes that this downloads and adds the Android USB debugging components Firefox needs.
- Check the sidebar for your phone under USB. If it is not there, click Refresh devices.
- Click Connect next to the phone, then click the phone name to open its runtime page.
- Click Inspect next to the tab you want to debug. A DevTools toolbox for that phone tab opens on the desktop.
Ignore the Network Location field for phones. The Firefox documentation states that those network steps do not work for Android; use USB or the adb Wi-Fi connection below.
How to Debug Firefox for Android Over Wi-Fi
The Firefox documentation supports a cable-free connection through adb when the phone runs Android 11 or later. The phone and the computer must be on the same network.
- On the phone, open Developer options, turn on Wireless debugging, and note the IP address and port it shows.
- Tap Pair device with pairing code to get a six-digit code and a separate pairing port.
- Pair with
adb pair, then connect withadb connectusing the port from the main Wireless debugging screen. - Run
adb devicesto confirm the connection, keep Remote debugging via USB turned on in Firefox for Android, and click Refresh devices in about:debugging.
adb pair <phone-ip>:<pairing-port>
# enter the six-digit pairing code when prompted
adb connect <phone-ip>:<wireless-debugging-port>
adb devicesFirefox --remote-debugging-port on Desktop
Many searches for Firefox remote debugging are about this command-line flag, which is a separate feature from about:debugging. Mozilla's Remote Agent security notes say the flag starts a server that defaults to localhost:9222 and accepts loopback connections only.
# Windows
"C:\Program Files\Mozilla Firefox\firefox.exe" --remote-debugging-port=9222
# macOS / Linux
firefox --remote-debugging-port=9222The Remote Agent speaks WebDriver BiDi. Mozilla's remote protocol preferences page notes that Chrome DevTools Protocol support has ended, so WebDriver BiDi is the only protocol on this port. Automation clients such as Selenium use it; the WebDriver BiDi guide explains the protocol.
Troubleshooting Firefox Remote Debugging
- Phone missing from the sidebar - click Refresh devices. If it is still missing, the computer is probably not authorized yet: accept the prompt on the phone and refresh again.
- adb devices lists nothing - try another cable or port, and switch the phone's USB mode from charging only to file transfer.
- Firefox for Android 68 - desktop Firefox 69 and later cannot debug Android builds based on version 68. Use desktop Firefox ESR 68 or update the phone's Firefox.
- Wi-Fi device disappears - run
adb connectagain with the current port from the Wireless debugging screen, then refresh about:debugging.
Note: Need to check the same page on phones and Firefox versions you don't own? Run it on real devices and desktop browsers with TestMu AI. Start testing free
Debugging Across More Devices and Browsers
A USB phone covers one device and one Firefox build. TestMu AI Real-Time Testing opens live sessions on 3,000+ browser and OS configurations, and its session toolbar launches Firefox DevTools inside desktop Firefox, so you can test on Firefox browsers across multiple versions without installing them.
For Android-specific rendering, the TestMu AI real device cloud runs 50,000+ real Android and iOS devices with Chrome DevTools, device logs, and network logs in the session. The developer tools documentation shows how to open DevTools in a session and notes that Android DevTools need Android 7.0 or later.
Conclusion
Start with USB: turn on USB debugging and Remote debugging via USB, click Enable USB Devices in about:debugging, and inspect one tab from your staging site. When you need Firefox versions you don't have installed, open a desktop session with the Real-Time Testing getting-started guide. For iPhones, the iOS Safari remote debugging guide covers Safari Web Inspector.
Testing web or mobile apps without writing code? KaneAI by TestMu AI turns plain-English instructions into tests.
Author
Navin Chandra is a Member of Technical Staff at TestMu AI, building the open-source automation that powers its Selenium and Appium cloud grid. A committer to both Selenium and Appium, he implemented WebDriver BiDi support in Selenium for real-time browser events and bidirectional control and is developing Apple's iOS RemoteXPC protocol in Appium to enable low-level wireless communication with iOS system services. He contributes to Selenium across multiple language bindings as a member of the Selenium GitHub organization. He has served as a Google Summer of Code mentee and mentor at openSUSE and an LFX mentee at CNCF's KubeArmor, and is a SUSE Certified Deployment Specialist. Navin holds a B.Tech in Computer Science.
Reviewer
Isha Vyas is a Lead Member of Technical Staff at TestMu AI, building the frontend of the quality engineering platform. She works across React.js, responsive web design, and jQuery to ship and maintain the platform's user-facing web interfaces. She brings nearly seven years of frontend engineering experience at the company, with earlier work as a Software Developer at Mantra Labs. Isha holds a B.Tech in Computer Science from Swami Keshwanand Institute of Technology, Management and Gramothan, Jaipur.
Firefox Remote Debugging FAQs
Did you find this page helpful?
More Related Blogs
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance
- Advanced access controls
- Advanced data retention rules
- Advanced Local Testing
- Premium Support options
- Early access to beta features
- Private Slack Channel
- Unlimited Manual Accessibility DevTools Tests






