how to debug c++ for android NDK?

the logic part of the program is usually in C++, when the program is compiled to android, it’s hard to see the debug information. I remember using CCLog() could print some info which could be caught by Logcat in eclipse, but is there any other more convenient way to debug the program?

You can try GDB.

Minggo Zhang wrote:

You can try GDB.

do you mean i could debug the android app using gdb? never tried that…