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

Console output isnt working

I go to View>Assistant Editor>Show Assistant Editor and it opens up but nothing is showing up when i print something. Is there anyway I can fix this?

1 Answer

Ethan Lowry
PLUS
Ethan Lowry
Courses Plus Student 7,323 Points

Are you actually running the app to cause the print to run?

Yes

It might just be my slow mac

Ethan Lowry
Ethan Lowry
Courses Plus Student 7,323 Points

Note that the assistant editor isn't where print output appears, it goes in the console. This normally appears automatically when needed but take a look in your view menu in case it's been disabled somehow. It should normally be along the bottom of XCode.

Isnt asistant editor the console? Its not showing for me still.

Ethan Lowry
Ethan Lowry
Courses Plus Student 7,323 Points

They're separate as far as I'm aware. Post your code also, though I assume it's not the problem here.

var todo: [String] = ["Return calls","Write blog","Cook dinner","Pickup Laundry","Buy bulbs"]

var index = 0 while index < todo.count { println(todo[index]) index++ }

When i do this nothing is printed into the console. Not just this code, but all my other ones.