Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Objective-C Basics (Retired) Functional Programming in C Control Flow - For Loops

Weird return that sometimes happens "(lldb) "

Sometimes, instead of printing the values on the video, the computer returns "(lldb) "

Also, when it does this, whenever I click the "play" button to run it again, a pop-up appears saying this (pop-up is in the "/* */" tokens--this is just for reference, these don't actually appear in the pop-up):

/* Stop “MyFirstCProgram”?

“MyFirstCProgram” is already running. Click Stop to terminate and launch a new instance.

Click Add to launch an additional instance. */

May someone please explain to me the reason for this??? I am fairly new to programming, btw...

3 Answers

A breakpoint in your program is a pause to check variables and logic for debugging purposes. I guess by accident you had set a breakpoint (blue arrow in Amit's picture, click the arrow to disable the checkpoint and then the play button from the debug panel to continue with the execution) Since you program is in a pause, therefore your program is still being executed, and when you hit the ´Play´ button again your are in fact trying to execute a second instance of your program.

Please read the following documentation to learn about how to debug a program.

https://developer.apple.com/library/ios/documentation/ToolsLanguages/Conceptual/Xcode_Overview/DebugYourApp/DebugYourApp.html

Also follow the iOS Development track in teamtreehouse.com to learn the basics about Objective-C and Xcode.

I'm sorry, I do not comprehend what a "breakpoint set" is...is there a lesson that you could redirect me to where I could find this term?