You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Tracing on Android touch devices is not as straightforward as on iPads because there is no browser inbuilt console.

There are a few tools to remote debug Webkit browsers. Here we are only going to cover the Android Debug Bridge – adb – which lets you output trace statements to a dos command prompt. To use adb you require:

  • The platform tools included in the Android SDK package: http://developer.android.com/sdk/index.html.  Note: the entire package is quite big, it should be enough to just get the platform tools.
  • A USB connection to a PC or laptop. Check that your device has USB Debugging enabled: Settings – Applications – Development – USB debugging

To start using adb:

  1. Connect the device to the computer and open a DOS prompt and change directory to the platform tools.
  2. Type this command and press Enter:
  3. Type this command and press Enter:
  4. Type this command and press Enter:
  5. To start tracing, first clear the log:
  6. Next, you can issue this command which will filter the browser messages:


From here on any trace messages will come out on the DOS window:

For more information about the adb interface see http://developer.android.com/guide/developing/tools/adb.html.

  • No labels