Reputation: 899
I am creating a SDK and obfuscating the code through proguard/dexguard but I am not sure how my developers can debug the code if the code is obfuscated. Not obfuscating the SDK code is not an option.
Code obfuscation and debugging don't seem to work parallely unless I am missing something here.
Upvotes: 0
Views: 460
Reputation: 65
You can ask DexGuard to print a mapping file. This is achieved by including the option -printmapping "mapping.txt" in the DexGuard configuration file. Together with this mapping and a stacktrace you can use the retrace.jar tool, included with DexGuard, to de-obfuscate the stacktrace and debug the SDK.
All the information on how to do this can be found in the docs/ directory shipped with DexGuard.
Cheers,
Dario
Upvotes: 1