I have set a breakpoint in my code. The code in that line is an if statement
if (((RKMappableObjectTableItem *) item).options){
now I want to see the value of options when the application breaks at this point, how do I do this in xcode?
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.
Set a breakpoint and when execution stops open the console (⇧+⌘+Y) and type the following at the gdb prompt:
Assuming options is an object, it should work. If it returns a struct try
replacing
Typewith the name of the struct represented byoptions.Another option is to open the Variables View (use the icons at the top right in the console) in the console and expand the node for the variable item.