简体   繁体   中英

How to debug C function in XCode Debugger

In my iOS code, I have the following code

(char *)xmlTextReaderValue(reader)

How can I can see what this C function returns in XCode? I know that if it was Objective C object I could use po to print the object. Is there any alternative for C functions?

如果您的char *包含可打印的数据(例如以NULL结尾的格式良好的字符串,则可以简单地使用p命令,显式转换结果:

p (char *) xmlTextReaderValue(reader)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM