Xcode debugging: View value of NSNumber?

落爺英雄遲暮 提交于 2019-12-09 01:52:31

问题


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

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.


回答1:


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.



来源:https://stackoverflow.com/questions/753153/xcode-debugging-view-value-of-nsnumber

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!