My workspace layout is:
.
├── ApplicationLibrary
│ ├── AndroidManifest.xml
│ ├── ...
│ ├── jni
│ ├── libs
│ ├── ...
│ └── src
└── Application
I was able to set breakpoints and debug native code in an android library on eclipse by adding the directory of the unstripped shared library/libraries to the debugger in the debug configurations dialog:
That seemed to work for me. Hopefully, you'll have the same luck...
Peace
It is possible:
Update your build config to include “NDK_DEBUG = 1”. Right click project -> properties -> C/C++ Build:
Set a breakpoint in your C code.
Right click on your project, select Debug As -> Android Native Application
For more details follow:
http://tools.android.com/recent/usingthendkplugin