Android Developers NDK Guides Debugging Your Project After you've built your app, you'll probably need to debug it. This section introduces you to the NDK's debugging tools. It begins by telling you how to use the ndk-gdb tool to debug your code. It closes with an explanation of the ndk-stack tool, which helps you use the ADB logcat tool as you debug. Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates. Last updated April 16, 2018.