Add the following lines to the proguard configuration.
-renamesourcefileattribute SourceFile -keepattributes SourceFile,LineNumberTable
Now your stack traces will contain line numbers, and with the retrace tool that comes with the proguard (included in the Android SDK), you can debug as usual.
Please note that even if you have not used these two configuration parameters, retrace can still display useful information if you have a mapping file, although not entirely unambiguously.
Note. The mapping file is created using the proguard configuration option:
-printmapping outputfile.txt
In the ant file that comes with the Android SDK, it is installed on map.txt.
Good luck.
Daniel Szmulewicz Jul 12 '11 at 19:50 2011-07-12 19:50
source share