I used Visual Studio, and the Debug mechanism is very useful to me. With many headers and C files in 1 project, just plain F10, he could take a tour from the beginning of the main () function so that I can see the sequence of code being executed.
Now I go to Android Studio and start with a project using NDK, JNI (this project, for example: https://github.com/googlesamples/android-ndk/tree/master/gles3jni ), it bothers me because there are a lot of .java files and other C ++ files (native code), and I don't know what code the file is running from and how it continues.
My question is: Iβm looking for a way to debug in Android Studio line by line from the very beginning to see how its workflow is like, how Visual Studio works, but all I got from the search is like starting from a breakpoint when debugging.
I tried putting a onCreate() in the onCreate() method of the launch activity and using F8 before Step Over and F7 before Step Into , but it does not work as I expect. It leads me to the superclass Activity.java and GLSurafaceView.java instead of taking me to C ++ code. Is there a way to do this in Android Studio and how to do it?
I tried with other projects, but the problem still remains the same. Hope someone can help.
debugging android-studio android-ndk jni
Toan tran
source share