Debugging an Android NDK application in Eclipse

Debugging at terminals with GDB or CGDB is cumbersome for developers who are used to the graphical development tools. With Android Development Tools (ADT) 20.0.0 or above, debugging NDK application in Eclipse is fairly easy.

Getting ready

Make sure you have ADT 20.0.0 or above installed. If not, please refer to recipes in Chapter 1, Hello NDK, that explain how to set your environment up.

Make sure you have configured the NDK path in Eclipse. In addition, you are expected to have built and run at least one Android NDK application before reading this recipe. If not, please go through the Building Android NDK Application at Eclipse recipe.

How to do it...

The following steps create a sample Android project ...

Get Android Native Development Kit Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.