gpt4 book ai didi

cocoa - 可以使用 Xcode 或解释获取异常位置...我怎样才能同时获得两者?

转载 作者:行者123 更新时间:2023-12-03 16:15:59 24 4
gpt4 key购买 nike

如果我不在 Xcode 4.2 中的异常上设置断点,我会得到非常好的解释,如下所示:

exception -[NSLayoutManager
_fillGlyphHoleForCharacterRange:startGlyphIndex:desiredNumberOfCharacters:] *** attempted
glyph generation while textStorage is editing. It is not valid to cause the
layoutManager to do glyph generation while the textStorage is editing
(ie the textStorage has been sent a beginEditing message without a matching endEditing.)

如果我确实设置了断点,我就能找到问题的位置,这也很好。但后来我不明白解释。即使我继续,也不会向控制台写入任何内容。

我怎样才能同时获得两者?据推测,由于 Xcode 在异常上停止,因此当我可以访问异常对象时,异常对象位于调试器中的某个位置。

最佳答案

启用僵尸对象以获取异常位置:

转到菜单“产品”->“方案”->“编辑方案...”->“诊断”选项卡->“ON”复选框启用僵尸对象

关于cocoa - 可以使用 Xcode 或解释获取异常位置...我怎样才能同时获得两者?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9523447/

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