Answer the question
In order to leave comments, you need to log in
How to run native debugger in Android Studio?
Good afternoon!
There is an android application written by me that connects to a jni library that was not written by me and I do not have its source codes.
An error occurs there, and in order to identify it, it is necessary, as I understand it, to use gdb.
Only I have never used gdb and have questions.
I read this post - https://habr.com/en/post/151192/
It says, you need to run the command:
gdbserver :5039 --attach %PID%
I execute (after launching the application via the Debug 'app' button), (my pid, as shown by Android Studio, 15139):
gdbserver :5039 --attach 15139
Returns an error:
Attach to process failed (error 87): ╧рЁрьхЄЁ чрфрэ эхтхЁэю.
Can't attach to process.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question