I have a Person class which has only a property: name. I want to list the property value when debug, but xcode just display “isa”, how can I do it like in eclipse?
Xcode :

eclipse:

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Under the hood, properties are accessed using methods. A property named
namecan be read using thenamemethod, and it can be set using thesetName:method. You can use the debugger’spocommand to print a description of an object. Try typing this at the debugger console:The
pocommand works by sending thedebugDescriptionmessage to the object you’re printing, and by default,debugDescriptionjust sends thedescriptionmessage. So you could add this method to yourPersonclass:Then you can use a debugger command like this:
and get output like this: