简体   繁体   English

如何在Xcode调试器中显示字符串?

[英]How to display strings in Xcode debugger?

I always used to be able to see NSString values in the debugger, without problem. 我总是习惯于在调试器中看到NSString值,没有问题。 Since updating to 3.2.5 all I see is the format string {(char *)Xcode_CFStringSummary($VAR, $ID)}:s 由于更新到3.2.5所以我看到的是格式字符串{(char *)Xcode_CFStringSummary($VAR, $ID)}:s

I can't see anything wrong with that. 我看不出有什么不妥。 Can anybody please tell me what the correct formatter should be? 任何人都可以告诉我正确的格式化程序应该是什么?

I'm having this same problem and haven't found a solution. 我遇到了同样的问题而没有找到解决方案。 But at least I did figure out you can still view the strings by right clicking on the string variable and selecting "Print Description to Console". 但至少我确实知道你仍然可以通过右键单击字符串变量并选择“Print Description to Console”来查看字符串。

I also had this problem and at the same time I noticed a couple of errors about missing symbols for xcode debug libraries ( see here ). 我也有这个问题,同时我注意到有关xcode调试库缺少符号的一些错误( 见这里 )。 Fixing the errors as described in the link also made my strings start working again. 修复链接中描述的错误也使我的字符串重新开始工作。 I realise you are talking about a different version of the SDK, but maybe the problem is the same. 我意识到你正在谈论SDK的不同版本,但问题可能是相同的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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