Beginning iOS Debugging
Apr 3 2018 · Video Course (35 mins) · Beginner
Learn the fundamentals of debugging in Xcode: including breakpoints, stack traces, and visibly inspecting the view hierarchy. After this course, you'll be better able to understand what's happening throughout the flow of your app, and why!
Version
- Swift 4, iOS 11, Xcode 9


Why learn debugging? This introductory video will answer this question and preview the course.
Breakpoints
3:48Pause your app in the middle of execution using breakpoints. Use the breakpoint navigator to view and manage all the breakpoints in your project.
Activate and deactivate individual breakpoints, disable all breakpoints in a project, and delete breakpoints in Xcode.
Inspecting Variables
5:27View the values stored in your properties and constants while your app is paused. Use debugger commands to change the state of your app while debugging.
Challenge time! In this challenge, you'll use the skills you've learned so far to find and fix a bug.
Control Flow
6:08Use Xcode to step through execution of your app one line at a time. Learn the different ways to step through your code.
Call Stack
4:13See how the call stack works and how to navigate it during a debug session to view the app state at different points in the stack.
View Hierarchy
2:25Learn some tools for debugging visual issues with your app. Debug a layout issue using Xcode's debug view hierarchy tool.
In this challenge, use breakpoints and the call stack to find the source of another bug.
Conclusion
1:16In this video, review what you've learned in this course and see where to go next.
Comments