views:

40

answers:

1

I'm a CS student, so I'm still fairly new to programming. Breakpoints seemed pretty darn cool and useful to debugging, so I decided to play around with them a bit. Unfortunately, I don't really know how to work with them. I added a breakpoint to "Log breakpoint and arguments and auto-continue". The program reached the breakpoint, the debugger console spat out some stuff, but then when the program tries to ask for user input, I see a light-blue (gdb) at the end. When I press enter, nothing happens to indicate the program received the input. What am I supposed to do here?

+1  A: 

check this out

http://adeem.me/blog/2009/03/30/debugging-in-xcode/

camilin87
Wow. Thanks so much! I never knew there were so many useful tools to debugging
wrongusername
Oh, btw, to answer my own question, you need to pull up the debugging window with command-shift-y and press "Step over" once it reaches the breakpoint (when the program asks for input). But watch the videos. They're really useful, and you miss out on a lot if you don't.
wrongusername
@camilin87 Thanks once again! The stuff in that video has greatly improved my debugging. It's actually fun now :)
wrongusername