O'Reilly logo

Android NDK Beginner's Guide by Sylvain Ratabouil

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Debugging and Troubleshooting

This introduction to the Android NDK would not be complete without approaching some more advanced topics: debugging and troubleshooting code. Indeed, C/C++ are complex languages that can fail in many ways.

I will not lie to you: NDK debugging features are rather rubbish yet. It is often more practical and fast to rely on simple log messages. This is why debugging is presented in this last chapter. But still, a debugger can save quite some time in complex programs or even worse... crashing programs! But even in that case, there exist alternative solutions.

More specifically, we are going to discover how to do the following:

  • Debug native code with GDB
  • Interpret a stack trace dump
  • Analyze program performances ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required