This article talks about how to debug C++ code using the NDK debug tool, and give some advice about C++ programming on android. If the application is written in Java, programmers can use Eclipse to debug the code, set break points, and trace step by step. When written in C++, how do we debug? By now, for android version above 2.2, NDK provides an NDK debug tool, which runs on Linux, and can be used to debug the source code. The debug environment may vary with platforms. The steps given here are based on the environment of my host, which is Windows XP, Android-ndk-r6b, and Cgywin is used to build C++ code for android. How to install android-ndk-r6b and cgywin are out of the scope of this article. You can refer to other materials. The example code to be debugged is a list view holder which is given in the previous article. Suppose you have already prepared the environment, and the C++ code can be built for android successfully.


I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.

Stay tuned to my blogtwitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.


This article is related to

</ span>Android, Android Development, Android Resources, Android Samples,Mobile Development Tutorials,Mobile Developments,Android GUI using C++