Re: How to get the value of a NSNumber contained in an array while debugging ?
Re: How to get the value of a NSNumber contained in an array while debugging ?
- Subject: Re: How to get the value of a NSNumber contained in an array while debugging ?
- From: Daniel Richman <email@hidden>
- Date: Sun, 03 Aug 2008 11:58:11 -0700
If your array is called myArray, type
po myArray
in the debugger, and it will print the value of all objects in the array.
Daniel
MAGDELENAT Philippe wrote:
Hi,
I am wondering how to see the value of a NSNumber in XCode debugger
using a formatter when the said NSNumber is in a NSMutableArray ?
To sum it up:
- When I look at a NSNumber with the following formatter
"{(int)[$VAR intValue]}" everything works fine and the debugger shows
in the summary column the expected int value (112 actually :o).
- When I put 10 NSNumber in a NSMutableArray and look at it in the
debugger (displaying the content of the array with the little arrow),
no way to display the value. The formatter seems ignored or invalid.
Probably a dumb question (brand new in Cocoa/XCode) but I found no
answer to it neither on the net nor in apple debugger documentation.
Either I make a (stupid) mistake or I missed something in the
formatter regarding interaction with an array. Not sure I shouldn't
post to XCode dev list but I try here first. Feel free to redirect me.
Yours,
Phil
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden