Debugging on Android

Here we describe how to debug a build using Android Studio, the official IDE for Google’s Android operating system.

Android Studio

Notes

Native Extension job folder

Currently, the workflow is a bit troublesome for development. This is because the job folder name is random for each build, making the path mapping invalid for each build.

However, it works fine for a debugging session.

The path mappings are stored in the project .iml file in the Android Studio project.

It’s possible to get the job folder from the executable

$ arm-linux-androideabi-readelf --string-dump=.debug_str build/armv7-android/libdmengine.so | grep /job

The jobfolder is named like so job1298751322870374150, each time with a random number.