android / android/ndk

[FR] Update ndk-gdb to work with gradle/cmake

Open
#1,024 2 comments 2 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
2.3k
Forks
310
PR merge metrics
No merged PRs in 30d

Description

In older versions of the Android NDK I could debug my code from the command line using ndk-gdb script. Now that the NDK is migrated to gradle/cmake, the ndk-gdb script is no longer working. This is because it only works with the old build system, and is dependent on the android.mk file.

It would be really nice if there was a new ndk-gdb that worked with the cmake build system and used lldb.

I am a text editor/command line developer and prefer not to open Android Studio for any reason :P

Thanks! :)

Contributor guide

Open the contributing guide

Research direction

Start by locating the existing ndk-gdb script and reviewing its dependency on android.mk. Define how command-line debugging should work for Gradle/CMake builds using LLDB, with success meaning native code can be debugged without opening Android Studio.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cmake
Domain
build-system, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.