This article talks about how to debug C++ code using NDK-debug tool, and gives 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.