Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reopen Console Output in a Swift Playground?

I was happily printlning to the Console Output in the Assistant Editor of a Swift/Xcode 6 Playground (see this SO thread for more info), until I decided to try clicking the [X] to close the Console Output.

How do I bring the Console Output back??

like image 472
ericsoco Avatar asked Jun 18 '14 05:06

ericsoco


People also ask

How do I print in Swift playground?

move you mouse over the "Hello, playground" on the right side bar, you will see an eye icon and a small circle icon next it. Just click on the circle one to show the detail page and console output!

How do I open the console app in Xcode?

Go to Xcode → Preferences → Debugging → On Start → "Show Console".

Does Xcode still have playground?

You can use playgrounds in Xcode to quickly write some Swift code, experiment with new Swift syntax, or work on your Swift algorithms skills. Most of all, playgrounds in Xcode are a great way to learn Swift programming. In this tutorial, you'll learn how to get started with playgrounds in Xcode.


3 Answers

This eluded me for a while, too. You want View menu -> Assistant Editor -> Show Assistant Editor.

Once you see the pane that holds the console output, if you still aren't seeing the right thing, make any change that will cause a println() to fire and the console output should appear.

like image 200
Nate Cook Avatar answered Oct 17 '22 15:10

Nate Cook


Just hover your mouse pointer over the value evaluation area (pane next to your coding area) and click on the plus sign to open the output pane. If you have closed the console output in the output pane, then click anywhere in the coding area and press enter. You will get your console output back. enter image description here

like image 5
Abbyjeet Avatar answered Oct 17 '22 16:10

Abbyjeet


If the View > Assistant Editor > Show Assistant Editor does not work, simple go to the bottom of the screen and drag the little footer up, so it looks like so:

enter image description here

like image 4
LeviXC Avatar answered Oct 17 '22 15:10

LeviXC