Xcode调试:查看NSNumber的值? [英] Xcode debugging: View value of NSNumber?

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

问题描述

是否可以在变量监视窗口中的调试器数据库中查看NSNumber的数值?

Is it possible to see the numeric value of an NSNumber in the debugger datatip on in the variable watch window?

我在NSNumber中存储一个Integer值,请在调试期间查看此值。

I store an Integer value in NSNumber and want to see this value during debugging.

我已经在调试器中尝试了一些数据格式化程序,但它没有太多帮助。

I tried some of the data formatters in the debugger already, but it wasn't much help.

推荐答案

打开调试器视图,在摘要列中输入

Open the Debugger view and in the Summary column enter

{(int)[$VAR intValue]}

解释最适合您想在调试器中看到的内容。

or whatever interpretation is most appropriate for what you want to see in the Debugger.

这篇关于Xcode调试:查看NSNumber的值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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