Using what version of XCode? I've found that in XCode 3.1 its been pretty darn excellent and the few times it wasn't, I was able to just do a Print Description from the data formatter into the console (just a shortcut to "po <var name>".

Honestly I found that most of my biggest gripes I had in XCode 2 or even 3.0 are fixed in 3.1. 3.1 is not perfect and does still screw up every so often, but as a guy who has spent many many hours in Visual Studio 2005/2008 I can say that 3.1 has been a real joy to use with what I feel are fewer bugs and better developer-focused usability.

Also I get the impression from reading a lot of complaints that many of those are fixed in 3.1 and that people simply haven't upgrading because they can't (lots of legit reasons) and/or because they don't see a .1 release being that big of a deal.

Of course, I use 3.1 in 3.1 native projects and my type of work may simply not show the issues you see. But I know I've enumerated NSMutableArray or NSArray objects many times in 3.1 without any issues at all using the visual introspection.

On Aug 3, 2008, at 10:57 PM, [EMAIL PROTECTED] wrote:

Date: Sun, 3 Aug 2008 16:09:12 -0600
From: Nick Zitzmann <[EMAIL PROTECTED]>
Subject: Re: How to get the value of a NSNumber contained in an array
        while   debugging ?
To: MAGDELENAT Philippe <[EMAIL PROTECTED]>
Cc: cocoa-dev@lists.apple.com
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes


On Aug 3, 2008, at 1:39 PM, MAGDELENAT Philippe wrote:

Yep found that but I want so see the value of my NSNumber in the GUI
debgger (in XCode). I want to see my array (it shows something like
10 objects for the summary) and then, if I open the array I want the
summary to work for each of the NSNumber inside. Bellow you can see
that aNumber is well shown but that the same formatter isn't working
inside the array...


Data formatters have been notoriously unreliable since Xcode 1.0 or
so. I usually turn them off, since they don't always work (as you've
noticed), and they sometimes screw up debugging sessions, leading to a
timeout, in which case the only remedy is to pull the plug and start
again from the top.

If you need to inquire about the state of objects, the best way to do
it is manually, as long as you know that the object has been allocated.

Nick Zitzmann
<http://www.chronosnet.com/>

Alex Kac - President and Founder
Web Information Solutions, Inc.

"Champions aren't made in the gyms. Champions are made from something they have deep inside of them - a desire, a dream, a vision. They have last-minute stamina, they have to be a little faster, they have to have the skill, and the will. But the will must be stronger than the skill."
-- Muhammad Ali





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to