I do not understand the expressions window in the debugger. Say I have the following code
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
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