Re: Newbie Q: how print NSArray element from Xcode's debugger?
Re: Newbie Q: how print NSArray element from Xcode's debugger?
- Subject: Re: Newbie Q: how print NSArray element from Xcode's debugger?
- From: Eeyore <email@hidden>
- Date: Thu, 15 Mar 2012 21:43:54 -0700
From source,
NSLog(@"%@", object);
will print out the description of most Cocoa objects, including NSArrays.
You can get the same description from within gdb/lldb using po (for print object),
po object
Aaron
On Mar 15, 2012, at 2:32 PM, Bill Doster <email@hidden> wrote:
> short of adding code to load the value into a vanilla-C type variable...
>
> TIA,
> Bill
>
> _______________________________________________
>
> 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