Get playground to display all loop results

前端 未结 4 1400
我在风中等你
我在风中等你 2021-02-04 02:38

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.

for example:

This will te

4条回答
  •  我在风中等你
    2021-02-04 03:03

    You can see the results directly on the Debug Area

    (or)

    click anywhere on the line where your print method is defined and follow the below steps

     1. Editor -> Show Results for Current Line Editor
     2. Editor -> Result Display Mode -> Value History
    

    Vice versa, you can hide the print details by

     Editor -> Hide Results for Current Line
    

提交回复
热议问题