iOS Debugging Fundamentals

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! By Felipe Laso-Marsetti.

4 (9) · 2 Reviews

Download materials
Save for later
Comments
Share

Learning path

This is part of the iOS IDEs & Tools learning path. View path.

Who is this for?

This course is for beginner developers coming from our previous iOS paths (iOS and SwiftUI for Beginners, iOS User Interfaces with SwiftUI, and iOS Data and Networking) who want to take their skills to the next level and improve their debugging skills.

Covered concepts

  • Debugging in Xcode
  • Breakpoints
  • The Variable View
  • The Console
  • View Debugging
  • The Call Stack

Part 1: iOS Debugging Fundamentals

01
Toggle description

Why learn debugging? This introductory episode will answer this question and preview the course.

Toggle description

Pause your app in the middle of execution using breakpoints. Use the breakpoint navigator to view and manage all the breakpoints in your project.

Toggle description

Activate and deactivate individual breakpoints, disable all breakpoints in a project, and delete breakpoints in Xcode.

Toggle description

View 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.

Toggle description

Challenge time! In this challenge, you’ll use the skills you’ve learned so far to find and fix a bug.

Toggle description

Use Xcode to step through execution of your app one line at a time. Learn the different ways to step through your code.

Call Stack 5:56
Toggle description

See 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.

Toggle description

Learn some tools for debugging visual issues with your app. Debug a UI issue using Xcode’s debug view hierarchy tool.

Toggle description

Learn how to use Debug Previews to debug SwiftUI code using Previews instead of relying on a simulator or device.

Toggle description

In this challenge, use all of your acquired knowledge to find the source of the last bug.

Conclusion 1:17
Toggle description

In this episode, review what you’ve learned in this course and see where to go next.

Up next

iOS & Swift
Xcode Tips and Tricks
Learn to use Xcode to the max! Improve your IDE proficiency with techniques such as keyboard shortcuts, ed... more

Instructors

Contributors

Adriana Kutenko

Illustrator

Christine Sweigart

Video Editor

Over 300 content creators. Join our team.