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

Intermediate iOS Debugging

Apr 10 2018 · Video Course (1 hr, 13 mins) · Intermediate

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

5/5 2 Ratings

Version

  • Swift 4, iOS 11, Xcode 9

Improved Breakpoints and Logging

Introduction

3:38 Free

This introductory video will preview the course and introduce the debugging framework that will be used throughout.

1

Create exception breakpoints to make finding the cause of an unhandled exception easier. See how to share breakpoints between projects or multiple users of a project.

2

Use breakpoints to add new logging without having to stop, add code, and recompile.

3

Learn how to use symbolic breakpoints to understand what's going on in UIKit code. Add conditions to fine tune your breakpoints.

4

Put your new-found skills to the test, logging what's going on in framework code.

5

Conclusion

0:59

Review what you've learned in this section and see what's coming up in Section 2.

6

LLDB

In this video, see what's coming up in the section and start learning about scope in LLDB.

7

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

8

Create new variables in LLDB and use them to make your debugging life easier.

9

Use LLDB variables between multiple breakpoints to make them more powerful.

10

See how to reflect changes in the UI without having to resume your app.

11

Learn a new trick to view register values and use that to view the return value of a method.

12

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

13

Conclusion

1:04

Review what you've learned in this section and see what's coming up in Section 3.

14

Xcode

Preview the tools Xcode provides to simplify debugging.

15

Use the scheme to make testing and switching between languages much easier and faster.

16

Learn how to quickly spot issues where UIKit code is being called from a background thread.

17

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

18

In this challenge, use unsafeBitCast to view properties of objects in the debug memory graph. As a bonus, learn how to create command aliases.

19

See how Xcode finds and highlights issues with your app at runtime.

20

Learn how easy it is to debug without having to tether your device to your Mac.

21

Conclusion

1:11

Congratulations on completing Intermediate Debugging! Review what you've learned in this course and see where to go next.

22

Contributors

Comments