To be able to use the device locally you need to have installed the Android SDK Tools.
To be able to debug the remote device on a local machine, you need to do the following:
-
On STF, after controlling a device, go to the Dashboard tab -> Remote Debug panel.
-
There will be a text field with content like
adb connect ...
. Click and copy that text. -
Paste it and run it your command line.
This will connect the device locally.
You can check it worked, by going to your command line and typing:
adb devices
You should be able to debug the device, however the IDE still has some bugs when using the debugger.
You should be able to debug the device as-is.
On Chrome 32 and newer, you don't need to do anything on the device.
On Chrome 32 and earlier, you need to enable USB remote debugging inside Chrome Settings:
- Open Chrome.
- Go to Settings -> Developer Tools.
- Enable USB debugging.
- Open a new tab
- Go to
chrome://inspect/#devices
on the address bar. - Enable Discover USB devices by clicking the checkbox.
It should show a list of pages opened inside the Device's Chrome browser and WebViews.
Now you can debug any page by clicking on inspect.
See more on the Remote Debugging on Android with Chrome docs.
- Open Opera.
- Type
opera:debug
on the address bar.
Go to your command line, and type:
adb forward tcp:9222 localabstract:opera_devtools_remote
You can use Opera, Chrome or any other Chromium based browser.
- Open a new tab.
- Go to
localhost:9222
on the address bar.
It should show a list of inspectable tabs.
Now you can debug any page.
See more on the Remotely Debugging Opera for Android docs.
- Open Firefox.
- Go to Settings -> Developer tools.
- Enable Remote debugging.
Go to your command line, and type:
adb forward tcp:6000 tcp:6000
If you are using Firefox OS, type:
adb forward tcp:6000 localfilesystem:/data/local/debugger-socket
- On the Web Developer menu, select Connect.
- This will go to
chrome://browser/content/devtools/connect.xhtml
. - Press the Connect button.
- On the device it will ask you to accept an Incoming Connection, press OK.
This should show a list of pages opened inside the Device's Firefox browser and WebViews.
See more on the Remotely Debugging Firefox for Android docs.