Answer the question
In order to leave comments, you need to log in
How to set up debugging of an android program?
Good day everyone, I recently started to understand the development for android and I want to understand how to debug programs on the phone. I can build a program, even a simple one, written in c/c++ and upload it to my phone. I can do it, but I haven’t figured out how to debug it yet, I read a lot of information and got confused. Can anyone explain or suggest a good guide? I have a rooted Nexus 5 (android 6). How do I connect a debugger to my application, as I understand it, you can configure gdbserver or somehow load it using ndk-gdb .. but there are a lot of guides on debugging libraries for apk, not full-fledged executable files
Answer the question
In order to leave comments, you need to log in
in fact, there are usually enough logs .... if not, android studio has load monitoring tools, etc.
I know that there is a debugger, but I have never needed it yet
This instruction helped me at one time:
https://mhandroid.wordpress.com/2011/01/23/using-e...
I think it can really be transferred to AndroidStudio
And by the way, native code always seems to come as a library on android. And a wrapper of Java calls is made around it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question