Xcode调试器中显示的奇怪值 [英] Strange values displayed in Xcode debugger

查看:179
本文介绍了Xcode调试器中显示的奇怪值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我当前正在使用Xcode版本7.2.1,并且在调试器中获得的大多数值显示的都是奇怪的值.奇怪的是,它始终是相同的值.除一些值外,所有变量都列为包含值"00:30:00".证明这一点的最好方法是举一个例子.

I'm currently using Xcode version 7.2.1, and I'm getting weird values displayed for most values in the debugger. The weird thing is it's always the same value. Other than a few values, all variables are listed as containing the value "00:30:00". The best way to show this is to give you an example.

我尝试重新启动Xcode,清理并构建,重新启动,甚至重新安装Xcode,但是我似乎无法逃脱这个怪异的值.如果输入打印语句,则所有值都将正确显示在控制台中.有什么办法可以使它们在调试器中正确无误?谢谢.

I have tried restarting Xcode, clean and build, re-booting, and even re-installing Xcode, but I can't seem to escape this weird value. If I put in print statements, all the values show up correctly in the console. Is there any way I can get them to be correct in the debugger? Thanks.

这很有趣.如果将鼠标指针移到其中一个条目上,则可以看到它显示为"00:30:00",但是如果我检查该值,它将显示正确的日期值.

This is kind of interesting. If I move the mouse pointer over one of the entries, you can see that it displays "00:30:00", but if I inspect the value, it displays the correct date value.

推荐答案

我终于明白了!我必须在编辑摘要格式..."弹出窗口中输入内容.将其作为文字格式的字符串,并显示此后所有字符串值的字符串.一旦删除它,一切恢复正常.

I finally figured it out! I must have typed something in the "Edit Summary Format..." popup. It took it as a literal format string and displayed it for all string values from thereafter. Once I removed that, everything went back to normal.

这篇关于Xcode调试器中显示的奇怪值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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