I downloaded Android SDK Bundle for Linux and Android NDK. ADT was installed, I installed CDT.
I created a Android project and added native support (jni). Then I wro
After struggling a lot to debug on Eclipse this is my recipe:
Do the usual steps:
android.os.Debug.waitForDebugger(); before loading your native library. This might help.APP_OPTIM := debug in Application.mkndk-build NDK_DEBUG=1Then, what I found different:
adb pull /system/bin/linker
Depending on your device you might have to write armeabi or armeabi-v7a. You only need to do it once (I noticed that running ndk-gdb manually was doing that. Executing that command manually the breakpoints started to work)