Visual Debugging
LLDB provides a tremendous collection of tools for finding bugs in your code. Only problem is, not every problem exists in code. Consider the storyboard scene in the figure.
This looks simple enough: text fields for username and password, and buttons for “Create” and “Forgot”. Except that, as they’re configured in the book’s download code, when you tap on the buttons, nothing happens.
How do you debug this? A good first instinct might be to set some breakpoints. If the buttons are connected to IBAction methods (rather than just being connected to segues entirely within the storyboard), you could set breakpoints on those methods ...
Get Xcode Treasures 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.