如何在快速的操场上重新打开控制台输出?

时间:2023-01-23 17:06:08

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.

我很高兴地将它打印到Swift/Xcode 6游乐场的助理编辑器中的控制台输出(请参阅这个,以便获取更多信息),直到我决定尝试单击[X]关闭控制台输出。

How do I bring the Console Output back??

如何返回控制台输出?

9 个解决方案

#1


27  

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.

一旦您看到包含控制台输出的窗格,如果您仍然没有看到正确的内容,那么进行任何更改,将导致println()触发并显示控制台输出。

#2


5  

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。您将获得控制台输出。

#3


4  

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:

如果视图>助理编辑器> Show Assistant编辑器不起作用,那么简单地转到屏幕底部并将小页脚拖上,就会是这样:

如何在快速的操场上重新打开控制台输出?

#4


3  

Closing the Playground and reopening did not bring the Console Output back, but quitting Xcode and reopening did. If there's an answer that doesn't require restarting Xcode I'll go for that, but for now this seems to be the answer :/

关闭操场并重新打开并没有返回控制台输出,但是退出Xcode并重新打开了控制台。如果有一个不需要重新启动Xcode的答案,我就这么做,但是现在这似乎是答案:/

Yay for beta software!

测试版软件,太棒了!

#5


2  

You can bring back the console frame by following the steps below:

您可以通过以下步骤将控制台框架带回来:

  1. Open the assistant editor. In the assistant editor, find the playground timeline screen.

    打开助理编辑。在助理编辑器中,找到操场时间表屏幕。

  2. In the playground timeline screen, find the bottom right corner box, where it contains "- 31 +" (In my case it says the time elapsed is 31; it can differ according to your code).

    在操场时间轴的屏幕上,找到右下角的方框,其中包含“- 31 +”(在我的例子中,它表示时间是31;它可以根据您的代码而有所不同)。

  3. Click the "+" / "-" mark in the "- 31 +" box.

    单击“- 31 +”框中的“+”/“-”标记。

  4. There your result, console frame along with the other frames could have come there.

    在那里你的结果,控制台框架和其他框架可能已经到达那里。

    如何在快速的操场上重新打开控制台输出?

#6


1  

The keyboard shortcut is Cmd + Shift + Y

键盘快捷键是Cmd + Shift + Y

#7


1  

If you've opened the Assistant editor, either by using Cmd+Option+Enter, or selecting the white/plus icon on the left of a line, and then removed the "Console output" there are some alternatives which may help you in getting it back:

如果您打开了助理编辑器,或者使用Cmd+选项+Enter,或者选择行左边的白色/plus图标,然后删除“控制台输出”,那么有一些替代方法可以帮助您恢复:

  1. Make sure you don't have any errors in your playground, as they stop execution and thusly any output to the Assistant Editor
  2. 确保在您的应用程序中没有任何错误,因为它们会停止执行并向助理编辑器输出任何输出
  3. Make a change so that playground is re-executed
  4. 改变一下,让操场重新开始
  5. Force a new run of the playground using Editor > Execute Playground
  6. 使用编辑器>强制一个新的操场运行
  7. Change the timer in the lower right, as this also triggers a new run of the playground
  8. 更改右下角的计时器,因为这也会触发操场的新运行
  9. Restart Xcode as the playground is a little buggy, and you sometimes just need to restart everything... :-(
  10. 重新启动Xcode,因为游乐场有点小问题,您有时只需要重新启动一切……:-(

#8


0  

Put a /* at the top line of your code area to comment out everything. The Console Output box will reappear at the top of the right-hand panel (the Assistant editor panel).

将/*放在代码区域的第一行,以注释所有内容。控制台输出框将重新出现在右边面板的顶部(辅助编辑器面板)。

Some errors may show in the Console box. Ignore.

控制台框中可能显示一些错误。忽视。

Now delete the /* and the Console box will stay put.

现在删除/*,控制台框将保持不变。

#9


0  

have just started xcode (version 7.0.1) using swift but had the same problem, to show how the code will appear in console I toggled the little triangle next to the play button on the bottom left of the screen triangle toggle button this then open a view in which I could see the results of the code console opend hope this helps

刚刚开始xcode(7.0.1版本)使用迅速但有同样的问题,展示了代码将显示在控制台并且我旁边的小三角播放按钮在屏幕的左下角三角开关按钮然后打开一个视图中,我可以看到代码的结果控制台打开希望这有助于

#1


27  

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.

一旦您看到包含控制台输出的窗格,如果您仍然没有看到正确的内容,那么进行任何更改,将导致println()触发并显示控制台输出。

#2


5  

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。您将获得控制台输出。

#3


4  

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:

如果视图>助理编辑器> Show Assistant编辑器不起作用,那么简单地转到屏幕底部并将小页脚拖上,就会是这样:

如何在快速的操场上重新打开控制台输出?

#4


3  

Closing the Playground and reopening did not bring the Console Output back, but quitting Xcode and reopening did. If there's an answer that doesn't require restarting Xcode I'll go for that, but for now this seems to be the answer :/

关闭操场并重新打开并没有返回控制台输出,但是退出Xcode并重新打开了控制台。如果有一个不需要重新启动Xcode的答案,我就这么做,但是现在这似乎是答案:/

Yay for beta software!

测试版软件,太棒了!

#5


2  

You can bring back the console frame by following the steps below:

您可以通过以下步骤将控制台框架带回来:

  1. Open the assistant editor. In the assistant editor, find the playground timeline screen.

    打开助理编辑。在助理编辑器中,找到操场时间表屏幕。

  2. In the playground timeline screen, find the bottom right corner box, where it contains "- 31 +" (In my case it says the time elapsed is 31; it can differ according to your code).

    在操场时间轴的屏幕上,找到右下角的方框,其中包含“- 31 +”(在我的例子中,它表示时间是31;它可以根据您的代码而有所不同)。

  3. Click the "+" / "-" mark in the "- 31 +" box.

    单击“- 31 +”框中的“+”/“-”标记。

  4. There your result, console frame along with the other frames could have come there.

    在那里你的结果,控制台框架和其他框架可能已经到达那里。

    如何在快速的操场上重新打开控制台输出?

#6


1  

The keyboard shortcut is Cmd + Shift + Y

键盘快捷键是Cmd + Shift + Y

#7


1  

If you've opened the Assistant editor, either by using Cmd+Option+Enter, or selecting the white/plus icon on the left of a line, and then removed the "Console output" there are some alternatives which may help you in getting it back:

如果您打开了助理编辑器,或者使用Cmd+选项+Enter,或者选择行左边的白色/plus图标,然后删除“控制台输出”,那么有一些替代方法可以帮助您恢复:

  1. Make sure you don't have any errors in your playground, as they stop execution and thusly any output to the Assistant Editor
  2. 确保在您的应用程序中没有任何错误,因为它们会停止执行并向助理编辑器输出任何输出
  3. Make a change so that playground is re-executed
  4. 改变一下,让操场重新开始
  5. Force a new run of the playground using Editor > Execute Playground
  6. 使用编辑器>强制一个新的操场运行
  7. Change the timer in the lower right, as this also triggers a new run of the playground
  8. 更改右下角的计时器,因为这也会触发操场的新运行
  9. Restart Xcode as the playground is a little buggy, and you sometimes just need to restart everything... :-(
  10. 重新启动Xcode,因为游乐场有点小问题,您有时只需要重新启动一切……:-(

#8


0  

Put a /* at the top line of your code area to comment out everything. The Console Output box will reappear at the top of the right-hand panel (the Assistant editor panel).

将/*放在代码区域的第一行,以注释所有内容。控制台输出框将重新出现在右边面板的顶部(辅助编辑器面板)。

Some errors may show in the Console box. Ignore.

控制台框中可能显示一些错误。忽视。

Now delete the /* and the Console box will stay put.

现在删除/*,控制台框将保持不变。

#9


0  

have just started xcode (version 7.0.1) using swift but had the same problem, to show how the code will appear in console I toggled the little triangle next to the play button on the bottom left of the screen triangle toggle button this then open a view in which I could see the results of the code console opend hope this helps

刚刚开始xcode(7.0.1版本)使用迅速但有同样的问题,展示了代码将显示在控制台并且我旁边的小三角播放按钮在屏幕的左下角三角开关按钮然后打开一个视图中,我可以看到代码的结果控制台打开希望这有助于