- 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.
推薦閱讀
- Hands-On Industrial Internet of Things
- Building RESTful Web Services with Spring 5(Second Edition)
- 中小型局域網(wǎng)組建、管理與維護(hù)實(shí)戰(zhàn)
- VMware NSX網(wǎng)絡(luò)虛擬化入門
- 端到端QoS網(wǎng)絡(luò)設(shè)計(jì)
- 大型企業(yè)微服務(wù)架構(gòu)實(shí)踐與運(yùn)營(yíng)
- 5G非正交多址接入技術(shù):理論、算法與實(shí)現(xiàn)
- 全聯(lián)網(wǎng)標(biāo)識(shí)服務(wù)
- 區(qū)塊鏈技術(shù)與應(yīng)用:打造分布式商業(yè)新生態(tài)
- Microservices Development Cookbook
- 一本書讀懂移動(dòng)物聯(lián)網(wǎng)
- 物聯(lián)網(wǎng)傳感器技術(shù)與應(yīng)用
- 通信系統(tǒng)實(shí)戰(zhàn)筆記:無(wú)處不在的信號(hào)處理
- Building Microservices with Spring
- 網(wǎng)絡(luò)空間作戰(zhàn):機(jī)理與籌劃