You can have an if or case statement where you have a breakpoint set for where 
the condition changes.  

I used to make a method a long time ago called, get this, -(void)breakpoint, 
and have a BP on it, but that's a little overkill.  

switch (myVar) {
        case (AllIsWell):
                break;
        case (AllIsNotWell):
                NSLog(@"Breakpoint: check your var");
                NSLog(@"MyVarValue: ,%@", thatVarIWantToSee);
                // put a BP below
                break;
        }

In the cases, set up the condition you are looking for that will catch the 
condition you are looking for.  I'm sure you'll need to modify that little 
block a bit, but it should spit out the value of your var after the condition 
is triggered.  

Hope this helps.

On Apr 12, 2012, at 3:02 PM, Pascal Harris wrote:

> I've got the weirdest bug.  I have a matrix of views (iOS development, by the 
> way) and all of them work correctly except for the object at 0, 0.
> 
> The 0,0 view is initialised correctly, but loses its settings at some point 
> (although methods that don't rely on those settings still work - the view 
> hasn't been deallocated).
> 
> There is nothing in my code designed to alter these settings after 
> initialisation.  Clearly there's a bug - in order to hunt the bug down I 
> thought it'd be a good idea to set a break point when one of the variables 
> changes and then see what made the change.  My question is, how do I do this 
> in Xcode 4.3?  I'm sure I've done this in the past - but I can't remember how!
> _______________________________________________
> 
> Cocoa-dev mailing list ([email protected])
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/zav%40mac.com
> 
> This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [email protected]

Reply via email to