How to switch between lldb and GDB in Android Studio

試著忘記壹切 提交于 2019-12-04 19:44:29

问题


While trying to debug a JNI project, I see this image after choosing "run" > "edit configuration": According to NDK documents I should see and be able to choose between lldb and GDB. Does anyone know how to do this on the new Android Studio? I am asking because I do not see my break points in my native code. Here is what I have:


回答1:


Try that: Open the sdk manager (Tools->android->sdk manager) then go in the tab "SDK Tools" and there check "LLDB".

Then:

  • Make sure you have selected a native run configuration (The default one is called "app-native"
  • Make sure you have selected a "Debug" variant (Bottom left, click on variant and select a "Debug")
  • Launch in debug (not the "play" green triangle, but the small bug on its right side)

This works for me with Android Studio 2.0 Preview, Gradle 2.9 and experimental plugin 0.6.0-alpha1



来源:https://stackoverflow.com/questions/32684845/how-to-switch-between-lldb-and-gdb-in-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!