Firefox Mobile debugging on Android got a bit easier

Two changes landed recently that are going to make Firefox Mobile debugging on Android a bit easier:

  • Debug info files are now available for nightly builds since friday, aurora builds since saturday, and beta builds starting from 8.0b3. Until now, debugging required to use custom builds, as the debug info wasn't available anywhere.
  • Our custom Android linker now makes GDB happy and properly reports our libraries to GDB, without requiring to extract them. This means you don't need to run with the debug intent to be able to attach and use GDB. This is only on mozilla-central for now. Update: unfortunately, it also only works on "debuggable" builds, so only custom builds :(

For convenience, I modified the fetch-symbols script to allow to download the debug info files for Android builds (Note this version of the script also solves the problem of getting debug info files for x86 builds on a x86-64 host). Instead of giving it the Firefox directory like for desktop builds, give it the APK file:

$ python fetch-symbols.py fennec-10.0a1.en-US.android-arm.apk http://symbols.mozilla.org/ /path/for/symbols

2011-10-10 10:51:12+0900

p.m.o

You can leave a response, or trackback from your own site.

3 Responses to “Firefox Mobile debugging on Android got a bit easier”

  1. Ted Mielczarek Says:

    Why not push those changes to the fetch-symbols repo?

  2. glandium Says:

    Ted: because I haven’t extensively tested them, and I’m not sure I didn’t break other use cases.

  3. Joshua Dubois Says:

    Android got a bit easier

Leave a Reply