I don't understand how to debug C++ APKs on android. Can someone please help me get started?
I found this: http://www.kandroid.org/online-pdk/guide/debugging_gdb.html
but running gdbserver -help
from the terminal emulator on the actual device returns "gdbserver: not found". Everything I've found online says to run gdbserver on the device, but I don't know how to get it. Or what to do from there.
Please note I am running Windows for the adb
connection, but the ndk build system is in a Linux virtual machine via terminal. gdb-ndk
must be run directly from Windows for this Android device to communicate via usb. adb logcat
only finds the device under Windows.
Thanks
I've also seen these links:
- ndk-gdb on windows
- http://mhandroid.wordpress.com/2011/01/23/using-eclipse-for-android-cc-debugging/
- http://mhandroid.wordpress.com/2011/01/25/how-cc-debugging-works-on-android/
- http://cgdb.github.io/
- http://mhandroid.wordpress.com/2011/01/23/using-cgdb-with-ndk-debug-and-cgdb-tutorial/
- http://geekswithblogs.net/raccoon_tim/archive/2011/09/12/working-with-android-on-windows-and-without-cygwin.aspx
- http://www.eclipse.org/sequoyah/documentation/native_debug.php