【发布时间】:2015-02-17 14:49:15
【问题描述】:
我正在尝试使用 LLDB 对有缺陷的代码进行一些调试:
@IBAction func somePrettyAction(sender: AnyObject) {
let names = ["LLDB", "is", "fun", "Kudos :)"]
println("out of index name: \(names[5])")
}
所以当应用程序在 println 崩溃时(原因很明显;)),我在 XCode 调试器控制台输入 -'Thread Info',它给了我以下输出:
thread #1: tid = 0x6fbc, 0x000000010ee5f1d0 libswiftCore.dylib`Swift._fatalErrorMessage (Swift.StaticString, Swift.StaticString, Swift.StaticString, Swift.UInt) -> () + 160, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
但是当我输入 - 't i' 时,它显示以下消息:
error: invalid thread #i.
根据给定命令的相关 wwdc 视频短格式应该可以工作,但由于某些原因它不起作用,有什么想法吗?
【问题讨论】: