as in the title is there a way in Xcode to Add Watch or Inspect a code segment in Xcode
for example how can I see the result of [myObject aMethod] with actually stepping over or Stepping in.
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.
In the debugger console, if you stop at a breakpoint you can type
po [myObject aMethod]to see the return value (if it’s not anidtype return value, usep ([return type here])[myObject aMethod]).You can also set a breakpoint action to print something out without pausing, just right click to edit the breakpoint: