B Debugging
Swift naturally provides built-in mechanisms to debug code. This appendix will explain how to debug your apps.
Debugging is one of the core skills of programming. As you set sail from simple playground examples toward advanced, real-world applications, the importance of this skill increases exponentially.
The term debugging originated from an actual insect-related incident. Back in 1947, when computers had vastly different architectures, engineers inspecting a computer error found that the reason for the unexpected malfunction was a moth stuck in a relay. They removed the bug and called the process debugging. Since then, the process of spotting and extracting program errors is commonly called debugging, whether the cause is a real ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access