P
P
Pavel Kaptur2017-01-15 19:25:31
Android
Pavel Kaptur, 2017-01-15 19:25:31

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

2 answer(s)
O
Oleg Gamega, 2017-01-15
@gadfi

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

G
GavriKos, 2017-01-15
@GavriKos

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 question

Ask a Question

731 491 924 answers to any question