0

I am loading an array of friends and passing it to my uitableview, every thing is working but when i put a break point in the method:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:             (NSIndexPath *)indexPath

with the gdb debugger I can see the content of my friends NSMutableArray and with the lldb it says the friends array has zero objects yet it works as expected and all my friends are showing... as Apple recommended using the lldb how do you debug with it? as it's not even showing the content of my objects... plus if you have console commands/tips you use for debugging with gdb/lldb would be appreciated.

4

1 回答 1

5

这取决于你的编译器。我建议将lldb调试器与“Apple LLVM 编译器 3.0”一起使用,并将gdb用于 GCC 风格(包括“LLVM GCC 4.2”)。

以下是我发现对调试有用的一些链接:

最好的问候,大卫

于 2011-11-18T20:51:37.040 回答