This course is available as part of the raywenderlich.com Professional subscription. To learn more click here
Pro

Intermediate iOS Debugging

May 4 2021 · Video Course (14 mins) · Intermediate

Prepare to learn some new debugging tricks! In this course, you’ll improve your skills with LLDB and Xcode.

5/5 1 Rating

Version

  • Swift 5, iOS 14, Xcode 12

LLDB

Inspect Variables

1:59 Free

Learn about the three ways to inspect data in your app and the danger that comes with that power.

1

Use LLDB to create new variables, and learn to use them effectively to make your debugging life easier.

2

LLDB offers commands for step-based control, i.e. “Step Into”, “Step Over”, “Step Out”, and “Continue”.

3

Use a flag to allow a method called from the LLDB command line to stop at breakpoints in that method.

4

Xcode

Swift Error Breakpoints are great for getting to the root cause of unexpected behavior, when it’s caused by errors thrown deep within your own code.

5

Breakpoints can be shared in two ways: between projects just on your own system, or as a file, for multiple users of a project.

6

Learn how to quickly spot issues where your code is being called from a background thread, when it should not.

7

See how this tool helps pinpoint memory issues - taking you right to the line of code where a retained object was instantiated.

8

When it’s impossible to insert a breakpoint into a chain of Combine methods, where you need it, Publisher’s “breakpoint” methods can come to your rescue.

9

Learn how easy it is to debug without having to tether your device to your Mac. It’s a necessity for the Apple Watch and TV, but works with all devices.

10

Who is this for?

This course will provide you with more debugging techniques to use, after you’ve mastered the basics.

Covered concepts

  • LLDB
  • Debugging
  • Breakpoints
  • Threading

Contributors

Comments