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.
po
stands for Print Object, which essentially calls the description
method on the object.
Use p
to print an integer. For example:
p three