ios - Xcode 调试不打印对象的所有字段

标签 ios xcode

<分区>

我在下面的代码中有一个 indexPath 类型为 NSIndexPath

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

在调试器中,indexPath 不显示某些字段,如部分或行。
它尝试 pop 但它显示了

(lldb) p indexPath.row  
error: property 'row' not found on object of  
type 'NSIndexPath *' error: 1 errors parsing expression   

(lldb) po  
indexPath.row error: property 'row' not found on object of type  
'NSIndexPath *' error: 1 errors parsing expression

po indexPath  
<NSIndexPath: 0xc000000000200416> {length = 2, path = 4 - 1}

我应该怎么做才能启用它?任何帮助,将不胜感激。 enter image description here

最佳答案

po 一般用于打印对象描述

对于值,尝试使用p代替:p indexPath.row

关于ios - Xcode 调试不打印对象的所有字段,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36025837/

上一篇:iOS 企业版 - 多人

下一篇:ios - UIAlertController 自定义

相关文章:

ios - 如何在 xCode 中保存一组 UIimages (swift)

ios - 如何在 titleForHeaderInSection 方法中更改字体样式和背景颜色

ios - 集成自定义相机 View AVCaptureDevice

ios - 对于键名称或我在代码中给出的任何值,此类不符合键值编码

ios - 如何将文件夹中的图像列表上传到我的 xcode 项目中?

ios - 使用开放动画(展开)快速制作轮播 View 的更好方法是什么?

ios - Wordpress 自定义 css 无法在 iOS 上加载

iOS - 将 CAGradientLayer 集中到父 UIView

iphone - 如何将 unix 时间戳转换为人类可读时间?

ios - 没有这样的表问题