Android Studio and GDB

Hi all,

Has anyone had any luck getting GDB to attach when working with Android Studio?

I referenced the following link to get things going, however, when I run ‘info sharedlibrary’ from the GDB prompt, none of the listed libraries (ex: libOFAndroidApp.so) have debug symbols.

If I run ndk-gdb --force --start --verbose, it shows NDK-DEBUG=1 and everything looks fine, however, a non-debuggable version is apparently installed on my device.

Googling this (non-debuggable version installed), the culprit appears to be Studio itself. This SO post has a workaround, but I don’t have a rooted device.

Is there any way to get GDB going for OF on Studio?

Appreciate any help, thanks.