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 Swift Basics (retired) Control Flow While and Do-While Loop

Assistant Editor not working

Why is it when I click on assistant editor to see my output console is comes up blank?

Piotr Nejman
Piotr Nejman
3,374 Points

paste a code please

4 Answers

Martin Wildfeuer
PLUS
Martin Wildfeuer
Courses Plus Student 11,071 Points

Make sure you display the Debug area by clicking the button in the middle on the upper right.

Debug area

Then bring up the console by clicking the right button on the lower left

Console

Now you should see the console output in the right view at the bottom.

Does that help?

Richard McGrath
Richard McGrath
5,597 Points

I am having the same issue even after I followed your directions. I can see output in the Debug but the Assistant Editor console does not show any output.

//while

import UIKit

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

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

index = 0 repeat { print(todo[index]) index++ } while index < todo.count

this is what I want to see in my assitant editor so i can see the output console

//while

import UIKit

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

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

index = 0 repeat { print(todo[index]) index++ } while index < todo.count

this is what I want to see in my assitant editor so i can see the output console

Brian Patterson
Brian Patterson
19,588 Points

Had the same problem and chose Martin's solution. This worked!