xcode 调试区只有 (lldb) 输出,没有其他信息

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/16999075/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 03:27:56  来源:igfitidea点击:

only (lldb) output in debug area, no other message

iosxcode

提问by bhadz

I got a rare problem that randomly when I ran my app in xcode, the simulator will stop and in the debug area only "(lldb)" is shown. It is random because when I ran again without modifying my code, it will run. What could have been the problem? I tried it in my other projects but still the same. Thank you.

我遇到了一个罕见的问题,当我在 xcode 中运行我的应用程序时,模拟器会随​​机停止,并且在调试区域中只显示“(lldb)”。这是随机的,因为当我再次运行而不修改我的代码时,它会运行。可能是什么问题?我在其他项目中尝试过,但还是一样。谢谢你。

xcode 4.6.2 Mountain Lion 10.8.4 (lldb error starts after updating 10.8.4 from 10.8.3, I don't know if this has some impact on xcode)

xcode 4.6.2 Mountain Lion 10.8.4(从10.8.3更新10.8.4后开始出现lldb错误,不知道对xcode有没有影响)

update1 - result from Douglas

update1 - 结果来自道格拉斯

(lldb) bt
* thread #1: tid = 0x1c03, 0x94f06a6a libsystem_kernel.dylib`__pthread_kill + 10, stop reason = signal SIGABRT
frame #0: 0x94f06a6a libsystem_kernel.dylib`__pthread_kill + 10
frame #1: 0x907b1b2f libsystem_c.dylib`pthread_kill + 101
frame #2: 0x018db57b libsystem_sim_c.dylib`abort + 140
frame #3: 0x01f45b4e GraphicsServices`GSRegisterPurpleNamedPort + 348
frame #4: 0x01f4569f GraphicsServices`_GSEventInitialize + 123
frame #5: 0x01f45c1f GraphicsServices`GSEventInitialize + 36
frame #6: 0x0027ed99 UIKit`UIApplicationMain + 600
frame #7: 0x00001ccd sampleapp`main(argc=1, argv=0xbffff3a0) + 141 at main.m:16

回答by Douglas

In the debug area, after you see the lldb, type in bt, this will show you the crash log. Hopefully this will give you some insight as to what caused the crash/stop.

在调试区,看到 lldb 后,输入 bt,这将显示崩溃日志。希望这能让您对导致崩溃/停止的原因有所了解。

回答by CampbellGolf

I just posted the same question and seemed to have fixed my own issue:

我刚刚发布了同样的问题,似乎已经解决了我自己的问题:

SIGABRT Error - Exactly after 3rd Run (both iPhone & iPad Simulators)

SIGABRT 错误 - 恰好在第三次运行之后(iPhone 和 iPad 模拟器)



This appears to have resolved my issue:

这似乎解决了我的问题:

Update your scheme by selecting Product > Scheme > Edit Scheme, and choose the GDB debugger for your debug scheme from the Info Tab.

通过选择 Product > Scheme > Edit Scheme 更新您的方案,然后从信息选项卡中为您的调试方案选择 GDB 调试器。

The default was: LLDB

默认为:LLDB

Be aware of the 2 debuggers: GDB Vs LLDB debuggers

注意 2 个调试器:GDB 与 LLDB 调试器

回答by Steve

I had the same output with only "(lldb)" being displayed. I couldre-create the app crashing, though I couldn't really see why the certain steps should cause the app to crash? However, (from my initial tests) I am unable to crash the app running on an actual phone, which suggests to me something is dodgy with the simulator.

我有相同的输出,只显示“(lldb)”。我可以重新创建崩溃的应用程序,但我真的不明白为什么某些步骤会导致应用程序崩溃?但是,(从我最初的测试中)我无法使在实际手机上运行的应用程序崩溃,这表明模拟器有些问题。

Xcode 7/7.2.1 iPhone 5S running iOS 9.2.1

运行 iOS 9.2.1 的 Xcode 7/7.2.1 iPhone 5S

回答by Flimm

When I ran into a similar issue, it was because I somehow accidentally set a breakpoint on a line of code. Just click on the blue ribbon on the line of code to unset it.

当我遇到类似的问题时,是因为我不小心在一行代码上设置了断点。只需单击代码行上的蓝丝带即可取消设置。