android-dev-ext
android-dev-ext copied to clipboard
breakpoints don't work on jni layer
hi, I follow the instructions and I can debug my android studio app in the VS code. But I need to debug my .cpp files that they are in the jni layer. Can anybody help me?
I think this requires going through ndk-gdb and I am not sure it is supported by this extension?
After find many places, I found that this extension is the closest one that I can have. So please support adb-gdb or gdb for remote. or maybe connecting to cpp extension for only a wrapper for android processing connection.
Hi, thank you for your response New version of android support debugging on jni layer ;)
I appreciate your feedback and agree that it would be a nice feature, but adding native debugging is a huge task, equivalent to writing another debugger extension.
At the moment, the Android debugger extension works by providing an interface to JDWP running on the device - this is a high-level debug protocol that automatically handles a lot of internal functionality (setting breakpoints, stepping, etc). Native debugging is completely different. Android Studio uses a separate utility (lldb-server
) to provide JNI debugging and using it requires additional components to be built directly into your app.
This is a completely open-source project and I'm happy to merge in a proposed PR with the new functionality, but unfortunately I don't have the spare time to research and implement this myself.