-
Notifications
You must be signed in to change notification settings - Fork 1
How to: JNI debugging
Marco Jansen edited this page Oct 12, 2015
·
1 revision
- Debugging currently only works on rooted devices. Make sure your phone or emulator is rooted and is root when you enter adb. Check this by adb'ing into your device and it should look something like
root@<phone_name>:/ #
- Debugging doesn't work on API 16
- Add
android:debuggable="true"
to the<application>
tag in AndroidManifest.xml - Add
APP_OPTIM := debug
to Application.mk - Open a terminal and
cd $PROJECT_DIR/src/main
- Make sure you have
ndk-gdb
in yourPATH
.ndk-gdb
is located in$SDK_DIR/ndk-bundle
ndk-gdb
- If you want to debug a bundle, add the
<bundle_name>.so
to$PROJECT_DIR/src/main/obj/local/$CPU_ABI