调试本地code在Android的图书​​馆图书、code、Android

2023-09-12 23:37:35 作者:smyslenny

我的工作区布局:

.
├── ApplicationLibrary
│   ├── AndroidManifest.xml
│   ├── ...
│   ├── jni
│   ├── libs
│   ├── ...
│   └── src
└── Application
    ├── AndroidManifest.xml
    ├── ant.properties
    └── ...

我如何在Eclipse中调试机库?有没有人是有所暗示?

How can I debug the native library in Eclipse? Has anyone some hint about this?

推荐答案

我能够加入剥开共享库/库的目录到调试器设置在Eclipse中的Andr​​oid库断点并调试本地code在调试配置对话框:

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:

进入运行菜单 - >调试配置 在左侧窗格中的Android原生应用程序,选择您的应用程序 在的调试选项卡中单击共享库部分中的添加...。 在浏览到您的Andr​​oid库项目目录,并添加它的子目录OBJ /本地/ armeabi。 应用和调试。

这似乎为我工作。希望你有同样的运气...

That seemed to work for me. Hopefully, you'll have the same luck...

和平