I know that Xcode is supposed to make debugging “easier”. Could someone how this works (At the moment NSLog() is my only debugging tool :D)
Thanks
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.
You just have to turn the breakpoints on (in toolbar) and then press Run.
Afterwards you set View/Show Debug Area (CMD+SHIFT+Y) to show the debug view. Set a breakpoint at the line you are interested in by clicking at the line number in the left panel. Now execution stops and you can inspect the variables. Use the Product / Debug menu for execute the code step by step to see what’s going on.
It’s pretty handy and you won’t miss it once you get used to it. Be careful with NSLog statements especially when developing for iPhone, they are very expensive in terms of preformance.