gpt4 book ai didi

Xcode 4 不显示异常消息

转载 作者:行者123 更新时间:2023-12-04 15:47:24 27 4
gpt4 key购买 nike

我有一个连接旧 socket 的 xib 文件。这将崩溃并在推送 View Controller 的行上设置断点:

Catchpoint 2 (throw)Pending breakpoint 1 - "objc_exception_throw" resolved

不是很有帮助,我记得在 XCode 3 中我有类似“ socket 未连接”的内容

我怎么拿回来?

编辑:如果我选中“评估操作后自动继续”,我会收到以下消息:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<OrderController 0x7942760> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key table.'
*** First throw call stack:
(0x16e1052 0x2182d0a 0x16e0f11 0x4cb032 0x43cf7b 0x43ceeb 0x457d60 0x99991a 0x16e2e1a 0x164c821 0x99846e 0x83fe2c 0x8403a9 0x8405cb 0x840941 0x85247d 0x85266f 0x85293b 0x8533df 0x853986 0xcf67dbd 0x8535a4 0x3a3da 0x841fbf 0x8422d4 0x8425d7 0x842785 0x85c0a5 0x842730 0x78b5ea 0x16b59ce 0x164c670 0x16184f6 0x1617db4 0x1617ccb 0x18f7879 0x18f793e 0x77aa9b 0x276d 0x1fd5)
terminate called throwing an exceptionCurrent language: auto; currently objective-c
(gdb)

这比另一个好,但断点在 main.m 上停止!这是我的断点的当前设置

enter image description here

最佳答案

谜团已揭开。至少对我来说,多次点击“继续”允许将错误打印到控制台。

问题(在这种情况下)是设置了几个其他自定义断点(objc_exception_throw,-[NSException raise])。

为 BOTH 启用“评估后自动继续”允许进程在没有手动干预的情况下被终止,大约在某个时间将详细的错误消息打印到控制台。

希望这可以帮助。

关于Xcode 4 不显示异常消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8741100/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com