"p"和"p"之间有什么区别?和"po"在Xcode的LLDB调试器中? [英] What's the difference between "p" and "po" in Xcode's LLDB debugger?

查看:283
本文介绍了"p"和"p"之间有什么区别?和"po"在Xcode的LLDB调试器中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

示例.我在旧项目中写了以下字符串,在新项目中写了一个清晰的字符串:

Example. I write the following string in my old project and a new, clear one:

UIInterfaceOrientation k = [UIApplication sharedApplication].statusBarOrientation;

用于清晰项目的控制台输入/输出:

Console input-output for a clear project:

(lldb) po k
UIInterfaceOrientationLandscapeLeft

如果我写"po k"-一个无用的整数列表,那么在我的旧项目中就很糟糕.

And something awful in my old project if I write "po k" - a list of useless integers.

此外,我无法在新项目中打印大多数对象.

Additionally I can't print most of objects in the new project.

推荐答案

Strip debug symbols during copy

在大多数答案中,他们建议将优化设置为无",但忘记了该选项应设置为NO(至少对于调试配置而言).

In most answers they advice to set optimization to "none" but forget that this option should be set to NO (at least for debug configuration).

这篇关于"p"和"p"之间有什么区别?和"po"在Xcode的LLDB调试器中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆