简体   繁体   中英

Android NDK Debug Library

I have a Java Android application project that includes a so library in libs/armeabi folder. The c++ code of this library is in a different Android NDK project and is dependent on other different library NDK projects. Is it possible to debug the c++ code of this library while the Java Android application is running?

In order to debug the native code in .so, first you need .so that was generated with debugging mode. (eg, NDK_DEBUG = 1) If you don't have source code and therefore no debuggable .so, there is no way to debug.

Also, please specify your environment such as Android NDK version, IDE, etc.

Assuming you are using Eclipse, this is detailed description how to debug native applications.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM