调试本地code在Android的图书​​馆 [英] Debug native code in Android Library

查看:142
本文介绍了调试本地code在Android的图书​​馆的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作区布局:

.
├── 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:

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

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

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

和平

这篇关于调试本地code在Android的图书​​馆的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆