Remotely debugging Firefox for Android
Use the Firefox development tool to debug remote code on your desktop (FF26 or more)
Specific Use reference:
Https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Firefox_for_Android
Main process:
1. Install androidsdkon the desktopand use androidsdk to install Android Platform Tools, To test the successful installation method:
Connect your PC and device via USB
Enter the installation directory under the command prompt,
Lists the devices that are currently connected.
2. Do the following in the mobile Firefox browser:
Firefox for Android and earlier: type in the browser address bar
About:config, enter Devtools in the search box, click Search,
Find devtools.debugger.remote-enabled to ensure that it is true
Firefox for Android and later: In the development tool, settings--In the browser menu , select "Remote Debugging"
3. For actions on desktop browsers
In the Debug toolbar, in Settings, select Enable Remote Debugging
Then restart the browser, in the browser menu bar- tool --web Developer, there is a "connection" to connect the mobile device
4. Start connection
Under the Desktop command, enter the adb installation directory , See 1, and then do the following:
ADB forward tcp:6000 tcp:6000
Then click on "Web developer - Connect". Appear
On the mobile device side, confirm the connection.
Remote code debugging--Mobile code debugging (Firefox tools)