Swift Learning Note (v)--enable console console output mode in background

Source: Internet
Author: User

As you can see in the previous introduction, using background in Xcode to learn Swift is very powerful, and it is very convenient to preview all of the constants or variable values in the code in real time in the interface on the right. But now we learn that Swift should appear as a console program, just like a beginner c,oc. All the printed results of the code can be displayed in the console console to distinguish between all previous parameter values being displayed together. However, the default open background is not called a console. What about that? The following is a brief description of how to open background.

(1) Open Xcode, select View-->assistant editor-->show Assistant Editor, or use the shortcut key Option+command+enter enter to bring up the console Output interface.


(2) write a line of code and observe the effect of the console. The discovery console successfully prints out the results of the println () method, which is in line with our expectations.


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Swift Learning Note (v)--enable console console output mode in background

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.