Reputation: 18845
I'm working in Xcode 4 and I want to print, in the debugger, variables like int
s, char
s, arrays, custom struct
s, etc. Is this possible?
With Objective-C I could do something like:
int three = 3;
> po [NSString stringWithFormat:@"%i", three];
Thanks.
Upvotes: 12
Views: 19466
Reputation: 3586
po
stands for Print Object, which essentially calls the description
method on the object.
Use p
to print an integer. For example:
p three
Upvotes: 24