[英]Android NDK Debug Library
I have a Java Android application project that includes a so library in libs/armeabi folder. 我有一个Java Android应用程序项目,在libs / armeabi文件夹中包含一个so库。 The c++ code of this library is in a different Android NDK project and is dependent on other different library NDK projects.
该库的c ++代码位于其他Android NDK项目中,并且依赖于其他不同的NDK库项目。 Is it possible to debug the c++ code of this library while the Java Android application is running?
在运行Java Android应用程序时是否可以调试该库的c ++代码?
In order to debug the native code in .so, first you need .so that was generated with debugging mode. 为了调试.so中的本机代码,首先需要使用调试模式生成的.so。 (eg, NDK_DEBUG = 1) If you don't have source code and therefore no debuggable .so, there is no way to debug.
(例如,NDK_DEBUG = 1)如果您没有源代码,因此也没有可调试的.so,则无法进行调试。
Also, please specify your environment such as Android NDK version, IDE, etc. 另外,请指定您的环境,例如Android NDK版本,IDE等。
Assuming you are using Eclipse, this is detailed description how to debug native applications. 假设您正在使用Eclipse, 这是如何调试本机应用程序的详细说明。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.