进入游乐场以显示所有循环结果 [英] Get playground to display all loop results

查看:109
本文介绍了进入游乐场以显示所有循环结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用xcode 7运动场,我想知道如何使运动场显示通过循环打印出的所有结果.

I'm using an xcode 7 playground, and I want to know how to make the playground display all the results printed out by a loop.

例如:

这将告诉我循环运行了4次,但只显示了迭代的最后一个值.有办法让我显示所有值吗?

This will tell me the loop ran 4 times, but it will only display the last value of the iteration. Is there a way I can make it show all values?

推荐答案

右键单击内联快速外观(其中带有"4"的灰色圆角矩形).有一个选项可以在列表中显示所有结果:

Right click on the inline quick look (the gray rounded rectangle with "4" in it). There's an option to show all the results in a list:

您还可以通过单击左下角的显示调试区域按钮来显示整个游乐场执行过程中已打印到控制台的所有内容:

You can also show everything that's been printed to the console for the entire playground execution by clicking the show debug area button all the way in the bottom left corner:

这篇关于进入游乐场以显示所有循环结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆