After running these two lines in Xcode 4.6.3, both x
and y
are marked as (null)
with grey text in the debugger’s Variables View pane.
NSNumber* y = [NSNumber numberWithBool:YES];
NSNumber* z = [NSNumber numberWithBool:NO];
Ditto for:
NSNumber* literalYes = @YES;
NSNumber* literalNo = @NO;
Yet if I context-click on those items in the Variables View pane, and from the context menu choose Print Description
, I do see the correct 1
or 0
value.
Why does the debugger’s Variables View pane report these objects as null
when they are not?