简体   繁体   中英

How do I debug native code of OpenCV samples on Android in Eclipse?

I am using Eclipse and trying to step through the native portions of the NDK OpenCV 2.4.8 samples, eg "T2 - Mixed Processing". I can both Run as Android App and Debug as Android App , and in the latter case I hit breakpoints in the Java parts (eg Tutorial2Activity.java ) but not in the C++ parts (eg jni_part.cpp ). I tried "Debug as Android Native Application" but nothing happened and I saw no new messages in LogCat.

What do I need to do to be able to hit the C++ breakpoints?

Thank you

According to comment #5 to this post, there is a bug in run-as in 4.3 which is the version of Android I am using. Hopefully it will be fixed but for now I need to find some other approach to debug my code.

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