Chapter 15. Debugging and testing

This chapter covers

  • Debugging using different techniques, tools, gauges, and instruments in Xcode
  • Testing your app
  • Testing your app interface

All’s well and good reading a book or following a tutorial, but in the real world things go wrong. And often! This is your chance to put your detective hat on and investigate.

In this chapter, we’ll look at what to do when things go wrong by using debugging. We’ll also look at how to prevent things from going wrong with testing.

Along the way, we’ll explore additional concepts:

  • The console
  • Variables view
  • Breakpoints and the breakpoint navigator
  • The debug navigator and gauges
  • Instruments
  • Unit tests and UI tests

15.1. The setup

A friend has kindly offered ...

Get iOS Development with Swift now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.