Android NDK Debugger Environment

307 views
Skip to first unread message

Callum Cooper

unread,
Oct 8, 2025, 7:41:11 AM10/8/25
to android-ndk

Has anybody else had any success with setting up a workable debugger environment with Android NDK C/CPP code. I am compiling my NDK C code from the command line using the Android NDK LLVM toolchain (ie x86_64-linux-android34-clang) and then installing my APK manually to the emulator with adb install. I understand that this manual approach is likely not the traditional way to compile and install, however I did not want to abstract the process of compilation and deployment over to an IDE like Android Studio. This process works well and runs the app fine in the emulator however the issue arises when debugging the app.

I have struggled to setup a workable debugger environment that attaches to my process running inside of the emulator. I have attempted to attach to my running process in the emulator via Android Studio which does successfully attach, however my symbols from my *.so NDK library do not appear to be loaded or even recognised in the lldb debugger tab inside Android Studio (even after editing the debugger configurations in Android Studio to point the 'Symbol Directories' to my local dir where the *.so is located).

Curious to know if anybody has any success with this approach and what their debugger environment looks like?


seal2002

unread,
Jun 24, 2026, 7:35:21 PM (9 days ago) Jun 24
to android-ndk
Can you share how you setup the debugger to your process? I the past I was success with ndk-lldb.

Vào lúc 18:41:11 UTC+7 ngày Thứ Tư, 8 tháng 10, 2025, Callum Cooper đã viết:
Reply all
Reply to author
Forward
0 new messages