Xcode debugging: View value of NSNumber?

2.3k views Asked by At

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

There are 1 answers

0
cdespinosa On BEST ANSWER

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.