iOS Debugging Fundamentals
source link: https://www.raywenderlich.com/18770184-ios-debugging-fundamentals
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Android Apprentice, Fourth Edition — Available Now!
The absolute best book to launch your career as a professional Android developer.
Freshly updated for Kotlin 1.4, Android Studio 4.1, and Android 11.
Start reading for free — today!
This is part of the "iOS IDEs and Tools" learning path. View Path
iOS Debugging Fundamentals
Apr 27 2021 · Video Course (49 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 5, iOS 14, Xcode 12
iOS Debugging Fundamentals
Introduction
3:22 FreeWhy learn debugging? This introductory episode will answer this question and preview the course.
Breakpoints
5:16Pause 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
8:03View 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
5:11Use 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:56See 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
3:48Learn some tools for debugging visual issues with your app. Debug a UI issue using Xcode’s debug view hierarchy tool.
Learn how to use Debug Previews to debug SwiftUI code using Previews instead of relying on a simulator or device.
In this challenge, use all of your acquired knowledge to find the source of the last bug.
Conclusion
1:17In this episode, review what you’ve learned in this course and see where to go next.
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
Contributors
Graphic Illustrator with a Bachelor’s Degree in Fine Arts. I am a perpetual perfection seeker with a big passion for History...
IllustratorChristine is Razeware's administrative assistant and video editor. For many years she fostered a strong dislike of green...
Video EditorComments
Add a rating for this content
Sign in to add a ratingAll videos. All books.
One low price.
A raywenderlich.com subscription is the best way to learn and master mobile development — plans start at just $19.99/month!
Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.
The largest and most up-to-date collection of courses and books on iOS, Swift, Android, Kotlin, Flutter, Dart, Server-Side Swift, Unity and more!
All videos. All books. One low price.
A raywenderlich.com subscription is the best way to learn and master mobile development — plans start at just $19.99/month!
Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalogue of 50+ books and 4,000+ videos.
- © 2021 Razeware LLC
- Made with ♥ from around the world
- 6000+ Tutorials and counting
raywenderlich.com and our partners use cookies to understand how you use our site and to serve you personalized content and ads. By continuing to use this site, you accept these cookies, our privacy policy and terms of service .
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK