Skip to content

Latest commit

 

History

History

day-065

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Day 65: Project 18: Debugging, Part Two

Follow along at https://www.hackingwithswift.com/100/65.

📒 Field Notes

This day covers the second and final part of Project 18: Debugging in Hacking with Swift.

It focuses on extending our debugging exploration with a set of challenges.

🥅 Challenges

Challenge 1

Temporarily try adding an exception breakpoint to project 1, then changing the call to instantiateViewController() so that it uses the storyboard identifier “Bad” – this will fail, but your exception breakpoint should catch it.

Challenge 2

In project 1, add a call to assert() in the viewDidLoad() method of DetailViewController.swift, checking that selectedImage always has a value.

Challenge 3

Go back to project 5, and try adding a conditional breakpoint to the start of the submit() method that pauses only if the user submits a word with six or more letters.

  • 📸 conditional-breakpoint