CRASH:*** - [__ NSArrayM objectAtIndex:]:index 4294967295超出界限[0 .. 9] [英] CRASH: *** -[__NSArrayM objectAtIndex:]: index 4294967295 beyond bounds [0 .. 9]
问题描述
我在这个荒谬的索引中得到一个数组,这个可笑的索引是根据我的研究结果表明,可能有一些代码调用消极的代码,如 [array objectAtIndex:-1]
问题是这不是我的代码,我无法找到它。我把断点放在这个地方没有用。我认为它可能在一个UITableView代理方法,但不能确定。有没有办法访问日志中的所有int变量的值。我不能NSLog他们,因为我不知道崩溃发生在哪里。
谢谢!
尝试添加一个异常断点来查看是否捕获它:
1)单击断点选项卡
2)点击选项卡屏幕左下角的+按钮
3)选择添加异常断点 p>
4)(可选)更改异常:全部到异常:Objective-C
5)点击完成
这通常会在导致崩溃的行之前/之前打破。
祝你好运。
I am getting an array out of bounds error at this ridiculous index, which based on my research says that there is probably some code calling something negative such as [array objectAtIndex: -1]
Problem is that this isn't my code and I cannot find it anywhere. I have put breakpoints all over the place to no avail. I am thinking it may be in a UITableView Delegate method but can't be certain. Is there anyway to access the value of all my int variables in the log. I can't NSLog them because I don't know where the crash is occurring.
Thanks!
Try adding an exception breakpoint to see if this catches it:
1) Click on the breakpoints tab
2) Click on the "+" button on bottom left of said tab screen
3) Select "Add Exception Breakpoint"
4) (Optional) change Exception:All to Exception:Objective-C
5) Click done
This typically will break right on/before the line that's causing the crash.
Good luck.
这篇关于CRASH:*** - [__ NSArrayM objectAtIndex:]:index 4294967295超出界限[0 .. 9]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!