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

Why is xcode out outputting (lldb) to the console instead of the text I'm trying to pass through the println() function?

My first time using xcode, I'm following these tutorials to a T and it's not working well for me. Just like the question states. Instead of outputting text to the console through the println function it just outputs "(lldb)" and sometimes xcode will freeze, shut down, or the memory will shoot way up :/

Uploaded a video to show my problem: https://www.youtube.com/watch?v=MbZewws4KYo

3 Answers

That's normal. You aren't getting any output to the console because your breakpoint is stopping the program right before the println statement executes. If you click on step over or step into (on the bottom bar/debug area) you should get your output :)

my breakpoint? step over? step into? bottom bar? debug area?

Oh, sorry.

At line 24 you should see a blue-like pointer. That's a breakpoint. If you click it you can disable it. Your program should run just fine

Bro, look at the video I uploaded and tell me where the blue-like pointer is on line 24. There isn't one.

Yes there is, it is on the left bar, where all the line numbers are

All I see is a grey circle, when I specifically right click on the line number a blue "pointer" appears and it gives me the option to edit the "breakpoint" and when I select "ignore" one time, it doesn't ignore anything and the program doesn't run fine, it just continues to do what it's been doing...

If you watch your video you'll see that there is clearly a breakpoint at line 24. Just disable it or right click it and delete it. Your program runs fine, it's just that it is stopping right before it executes the print statement

Step into and all that stuff it's in the debug area. The debug area is that bottom bar that pops up when the console says (lldb). The step into, over and all those buttons are in the bar on top of that area. They look like play/play-pause buttons. They are useful for executing your code step by step.