You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Marco Jansen edited this page Oct 12, 2015
·
1 revision
How to debug your native code in Android
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 your PATH. 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