[英]How to debug C function in XCode Debugger
In my iOS code, I have the following code 在我的iOS代码中,我有以下代码
(char *)xmlTextReaderValue(reader)
How can I can see what this C function returns in XCode? 我怎样才能看到此C函数在XCode中返回什么? I know that if it was Objective C object I could use
po
to print the object. 我知道,如果是Objective C对象,则可以使用
po
打印该对象。 Is there any alternative for C functions? C函数是否有其他选择?
如果您的char *
包含可打印的数据(例如以NULL
结尾的格式良好的字符串,则可以简单地使用p
命令,显式转换结果:
p (char *) xmlTextReaderValue(reader)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.