Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

John Baughman

macrumors regular
Original poster
Oct 27, 2003
100
0
I do not understand the expressions window in the debugger. Say I have the following code

Code:
 if ([dictionary valueForKey:@"Last location date"] == [NSDate dateWithTimeIntervalSinceNow:-86400]){

}

In the debugger, how can I see the value of the expressions on each side of the comparison. Selecting one or the other expression an hovering over it I get the i in a blue circle but I cannot make any use of it. So I tried right clicking and selecting add to expression window.

Doing so with the right side expression the Window opens up with expression listed but there is no value and the summary says out of scope.

With the left expression nothing happens.

I realize that this comparison will never return a value of true, but that is the subject of another question should I not figure out how to correctly right the statement. For now I would just like to understand how to use the Expressions window or just how to see what these expressions are evaluating to.

Thanks.

John
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.