Connecting to Firefox for A
- Check your Firefox version: make sure your device is running Firefox for Android 36 or later. WebIDE will not detect older versions automatically, so you need to enable port forwarding and connect to the device port - follow the instructions here.
- Make sure you have enabled remote debugging in Firefox: open Firefox for Android, open its menu, select
Settings
, and then check the checkbox atAdvanced > Remote debugging via USB
. - Make sure that USB debugging is allowed in the device's developer settings
- If you still do not see your device in the WebIDE window, 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 via WebIDE again.
- Disconnect your device from your computer and turn off
- 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 ofidVendor
values may help. Next, run theadb 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.
- Make sure you added a
- 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 Mac OS X:
- If you're an EasyTether user, you will need to uninstall or disable EasyTether:
sudo kextunload /System/Library/Extensions/EasyTetherUSBEthernet.kext
- If you're an EasyTether user, you will need to uninstall or disable EasyTether:
Connecting to Firefox for Android over Wi-Fi
- Check your Firefox versions: Wi-Fi debugging requires Firefox 42 or later, and an Android device running Firefox for Android 42 or later.
- Both the computer with desktop Firefox and your Android device must be connected to the same Wi-Fi network
- In more detail, desktop cannot be using a wired connection that routes to the Wi-Fi network. Instead, both must truly be on Wi-Fi.
- Ensure you have a Barcode scanning application installed. We recommend this one.
- Some Wi-Fi networks may block the packets used for Wi-Fi device discovery. Check with your network administrator to make sure these actions are allowed:
- The computer and the Android device must be able to send and receive UDP multicast packets sent on ports 50624-50625 to multicast address 224.0.0.115
- The network router must support UDP multicast packets
- Routers will not forward these UDP multicast packets, so effectively this means both devices need to be speaking directly to the same router without any other hops in between
Unable to load project list
If you open WebIDE in one version of Firefox, and then downgrade to a previous Firefox version with the same profile, you may see the error "Unable to load project list" when opening WebIDE in the earlier Firefox version.
This can occur when the storage system that WebIDE uses (IndexedDB) needs to move or restructure its internal files for the newer Firefox version. The project list then becomes effectively inaccessible to older versions of Firefox.
No data has been lost, but you will need to keep using the newest version of Firefox that was used with your profile to get the project list back.
If really want to use the older version of Firefox, you can attempt to delete just the project list in the following way, but this is unsupported and could result in the further problems or additional data loss:
- Close Firefox
- Find your Firefox profile directory
- Find the
storage
folder inside the profile directory - Under some part of this file tree, there should be files and/or directories that start with
4268914080AsptpcPerjo
(a hashed name of the database)-
For example, they may be located at
<profile>/storage/permanent/indexeddb+++fx-devtools/idb
-
- Remove any such files and directories
- Start Firefox and WebIDE again
Enable logging
You can also enable verbose logging to gather diagnostics:
- Open about:config, and add a new preference called
extensions.adbhelper@mozilla.org.sdk.console.logLevel
, with the string valueall
, and setextensions.adbhelper@mozilla.org.debug
totrue
. - In the Add-ons Manager, disable and then re-enable the ADB Helper add-on.
- Open the Browser Console and you'll now see console messages prefixed with
adb
. If the messages don't mean anything to you, ask for help.
Get help
Go to the #devtools room on IRC and we will try to help.