如何在Android Studio中在lldb和GDB之间切换 [英] How to switch between lldb and GDB in Android Studio
问题描述
在尝试调试JNI项目时,选择运行">编辑配置"后,我看到此图像:根据NDK文件,我应该看到
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:
推荐答案
尝试: 打开sdk管理器(工具-> android-> sdk管理器),然后进入"SDK工具"标签,然后选中"LLDB".
Try that: Open the sdk manager (Tools->android->sdk manager) then go in the tab "SDK Tools" and there check "LLDB".
然后:
- 确保您选择了本机运行配置(默认配置为"app-native"
- 确保已选择调试"变体(左下角,单击变体并选择调试")
- 启动调试(不是播放"绿色三角形,而是右侧的小错误)
这对我适用于Android Studio 2.0 Preview,Gradle 2.9和实验性插件0.6.0-alpha1
This works for me with Android Studio 2.0 Preview, Gradle 2.9 and experimental plugin 0.6.0-alpha1
这篇关于如何在Android Studio中在lldb和GDB之间切换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!