Remote Debugging - waiting for browser

Hey,

I’m trying to get remote debugging up and running but I’m stuck with “waiting for browser”

I’m using the German Nightly in x64 on my desktop and the Firefox Nightly on Android (play-store).

The following forum thread sadly didn’t help me :confused: (so this is a continuation of that thread sort of):

Remote Debugging

ADB (USB) is activated in the Android settings and adb devices lists my device.
remote USB Debugging in the settings of my Firefox (Android) is turned on.

The two checkmarks in the settings of my inspector for remote debugging and addon development are checked.

I open about:debugging and activate the tools.
The phone shows up on the left but is stuck in waiting for browser.

The following command didn’t work out for me (is it still necessary?):

adb forward tcp:6000 tcp:6000

I know of two manuals, one seems to be outdated:

https://developer.mozilla.org/en-US/docs/Tools/about:debugging

I never saw an incoming connection dialogue on my phone.

Daylight and Nightly are installed on my phone. At the moment only Nightly has remote debugging (usb) turned on.

What else could I check, what could be the problem here?

Regards
Felix

Update: I tried reconnecting my usb cable.
It disconnects and then is stuck again in waiting for browser.

Network/Wifi doesn’t work either

I even enabled devtools.remote.wifi.enabled

I have same problem too. Firefox Developer Edition on Linux (Fedora) and Firefox Nightly on Android. Both of them are latest version.

Hi,

Note that you can’t debug Nightly from Dev Edition. The client (desktop FF) should always be the same version or more recent than the server (mobile FF). Nightly is always more recent than DevEdition.

That being said, you should still be able to see the Browser (just tried right now).

Make sure you have both USB Debugging enabled in Android settings and in Firefox Nightly settings. Older versions of Fenix required to have a tab opened to see the browser, but I don’t think this is the case anymore.

1 Like

Hi!

This page is completely outdated and should be removed https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Firefox_for_Android

You don’t need to run any adb command to setup remote debugging. It looks like you have enabled USB debugging in Android settings (I don’t think you would see the phone otherwise). Maybe try disabling USB debugging from about:debugging. Kill any adb process still running. Then re-enable USB debugging?

Can you share which phone you are using here?

(unfortunately we don’t have a good way to get connection failure logs here :frowning: )

1 Like

Thanks for trying to help :slight_smile:
I’ll test out your suggestion.
I’m running a oneplus 3T with a custom rom (Android 10)

adb.exe (the Plattform tools) need to be in the system path still (right?)

good to know that it’s supposed to work automatically now (Firefox calls adb.exe now)

I am also facing this issue. The device gets listed but says waiting for the browser. No idea whats the problem. Did the OP get this solved ?

Desktop FF version: 89.0b13
Mobile FF version: 88.1.3
Phone OS: android 11 based arrowos custom rom
Desktop OS: Ubuntu 20.04

For anyone wondering what the resolve was - for me encountering this issue at least, was to not only enable USB debugging on the android phone’s settings, but also in the Firefox app (Setting > Advanced > Enable USB Debugging). Only then did I get the option to connect.

2 Likes

@jdescottes, what replaces it? I ask because I’ve been unable to locate any relevant documentation.

Google’s LLM provides better documentation than Google itself returns: [1]

  1. Enable USB Debugging on Your Android Device:

    1. Access Developer Options:

      Go to your Android device’s settings, then navigate to “About phone” and tap the “Build number” several times (usually 7 times) until you see a message saying “You are now a developer” or similar.

    2. Enable Developer Options:

      Go back to the main settings screen, and you should now see “Developer options”.

    3. Enable USB Debugging:

      Within “Developer options,” find and enable “USB debugging”.

  2. Enable Remote Debugging in Firefox Nightly:

    1. Open Firefox Nightly:

      Launch the Firefox Nightly app on your Android device.

    2. Access Settings:

      Tap the three-dot menu (usually in the bottom right corner), then select “Settings”.

    3. Navigate to About Firefox Nightly:

      Scroll down and tap on “About Firefox Nightly”.

    4. Enable Debug Mode:

      Tap the Firefox logo several times until you see a message saying “Debug mode enabled” appear.

    5. Enable Remote Debugging via USB:

      Go back to the main settings screen and look for “Remote debugging via USB” and enable it.

  3. Connect to a Computer:

    1. Connect via USB:

      Connect your Android device to your computer using a USB cable.

    2. Allow USB Debugging:

      When prompted on your Android device, allow USB debugging for the connection.

  4. Debugging on Your Computer

    1. Open Firefox:

      Open Firefox on your computer.

    2. Navigate to about:debugging:

      Type about:debugging in the address bar and press Enter.

    3. Connect to Device:

      You should see your Android device listed in the “Firefox Apps” section. Click on the device name and then click “Connect”.

    4. Start Debugging:

      You can now debug Firefox on your Android device using the developer tools on your computer.

This still didn’t work for me, though:

  1. Where’s my device?


  1. google.com/search?q=firefox+nightly+android+usb+debugging ↩︎

Ah, “Debugging Support” leads the user to firefox-source-docs.mozilla.org/devtools-user/about_colon_debugging. Apologies for the spam! It fixed my problem, too – that I’d not done sudo dnf5 install android-tools -y && adb devices.