简体   繁体   English

快速REPL中的LLDB GUI

[英]LLDB GUI in swift REPL

swift command line tool path: swift命令行工具路径:

/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

When I using swift in shell like python interpreter, I found a option gui 当我在像python解释器这样的shell中使用swift时,我发现了一个选项gui

>:gui

It look like this: 看起来像这样:

lldb gui

Anybody who knowns how to debub a REPL program using it in swift? 有谁知道如何快速删除使用它的REPL程序?

By the way, Is there some way to using gui LLDB to debug my iOS app in xcode? 顺便说一句,是否可以使用GUI LLDB在xcode中调试我的iOS应用程序? I try to pause my app and type gui or :gui but it can't works. 我尝试暂停我的应用程序,然后键入gui:gui但是它不起作用。

The "gui" mode won't run in Xcode since the Xcode debugger console is not a true terminal. 由于Xcode调试器控制台不是真正的终端,因此“ gui”模式不会在Xcode中运行。 Not entirely sure why you would want it in Xcode, anyway. 还是不完全确定为什么要在Xcode中使用它。

The problem with debugging swift code in the REPL is that lldb isn't currently generating debug information in this mode. 在REPL中调试快速代码的问题在于,该模式下lldb当前未生成调试信息。 So the debugger has no symbolic information to work with. 因此,调试器没有可使用的符号信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM