While debugging an iOS application, I know how to print values of objects using :
print "variable name"
po "variable name"
p "integer Variables"
I wanted to know how to print value of a constant while debugging in Xcode? Is there any command that prints value of a constant? Because, if I use the above commands, the Xcode returns an error saying
error: use of undeclared identifier
Thanks.
const int something = 123;or#define SOMETHING 123?const int ...ortypedef enum { ... } MyType;instead of pre-processor constants.enumis better anyway.