- iOS 12 Programming for Beginners
- Craig Clayton
- 90字
- 2021-07-02 15:04:52
Debug and print() – detecting your bugs
We can use the Debug panel (at the bottom of the following screenshot) using print(). So, let's see how print() works by printing both our name and age. We can do this by adding the following:
print(fullName)
print(age)
It should appear on your screen as follows:

You should now see the output in both the Results and Debug Panels. Using print() allows us to see things in our Debug Panel and therefore verify expected results. Using print() is a handy debugging tool.
推薦閱讀
- Modern JavaScript Web Development Cookbook
- Building E-commerce Sites with VirtueMart Cookbook
- GPS/GNSS原理與應(yīng)用(第3版)
- 異構(gòu)基因共表達網(wǎng)絡(luò)的分析方法
- INSTANT PhpStorm Starter
- TCP/IP入門經(jīng)典(第5版)
- Oracle SOA Suite 11g Performance Tuning Cookbook
- 新一代物聯(lián)網(wǎng)架構(gòu)技術(shù):分層算力網(wǎng)絡(luò)
- 互聯(lián)網(wǎng)基礎(chǔ)資源技術(shù)與應(yīng)用發(fā)展態(tài)勢(2021—2023)
- 互聯(lián)網(wǎng)安全的40個智慧洞見:2014年中國互聯(lián)網(wǎng)安全大會文集
- SSL VPN : Understanding, evaluating and planning secure, web/based remote access
- 深入理解Nginx:模塊開發(fā)與架構(gòu)解析
- 設(shè)備監(jiān)控技術(shù)詳解
- 移動物聯(lián)網(wǎng):商業(yè)模式+案例分析+應(yīng)用實戰(zhàn)
- Web用戶查詢?nèi)罩就诰蚺c應(yīng)用