在 Xcode 4 GM 中,如何打开 LLDB?我只看到 GDB
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4908805/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
In Xcode 4 GM, how do I turn on LLDB? All I see is GDB
提问by
In the scheme run debugger popup, all it shows is 'None' and 'GDB'. This is for an iPad 4.2 simulator built with LLVM.
在方案运行调试器弹出窗口中,它显示的只是“无”和“GDB”。这是用于使用 LLVM 构建的 iPad 4.2 模拟器。
回答by Jano
You can't. In words of an Apple employee, LLDB is not available for iOS development yet. As of july 2011 it is unknown when LLDB will become available for iOS.
你不能。用一位苹果员工的话来说,LLDB 还不能用于 iOS 开发。截至 2011 年 7 月,尚不清楚 LLDB 何时可用于 iOS。
In Xcode 4.0.2 your only option is GDB. In Xcode 4.2 you have LLDB as an option, but you can't use it:
在 Xcode 4.0.2 中,您唯一的选择是 GDB。在 Xcode 4.2 中,您可以选择 LLDB,但不能使用它:
The LLDB projectdoesn't list a date for iOS support. The FAQsays:
Q: What targets does LLDB currently support?
Mac OS X native debugging for i386 and x86_64 targets.
问:LLDB 目前支持哪些目标?
适用于 i386 和 x86_64 目标的 Mac OS X 本机调试。
And the WWDC 2011 sessions that talk about LLDB (eg: 321 Migrating to LLDB) don't mention anything about iOS devices.
而讨论 LLDB 的 WWDC 2011 会议(例如:321 Migrating to LLDB)没有提到任何关于 iOS 设备的内容。
回答by Roman Kagan
LLDB is shipping with XCode 4.0.1 that you can buy from Apple's AppStore.
LLDB 附带 XCode 4.0.1,您可以从 Apple 的 AppStore 购买。
You only have to switch to LLDB. You can do that by pressing Option key when clicking on "Run" and choose LLDB instead of CDB (third drop down box on Info tab).
你只需要切换到 LLDB。您可以通过在单击“运行”时按 Option 键并选择 LLDB 而不是 CDB(信息选项卡上的第三个下拉框)来执行此操作。
Here's XCode (can be found in "About XCode) that I have:
这是我拥有的 XCode(可以在“关于 XCode”中找到):
Version: 4.0 (4A1006)
Location: /Developer
Applications:
Xcode: 4.0.1 (99)
Instruments: 4.0 (3538)
Dashcode: 3.0.2 (333)
SDKs:
Mac OS X:
10.6: (4A1006)
iPhone OS:
3.2: (7B500)
4.3: (8F191m)
iPhone Simulator:
3.2: (7W367a)
4.0: (8A400)
4.1: (8B117)
4.2: (8C134)
4.3: (8F192)
回答by jimj
LLDB debugging is enabled in iOS with the release of Xcode 4.3.
随着 Xcode 4.3 的发布,在 iOS 中启用了 LLDB 调试。