If you followed the Beginning iOS Debugging course, you’re ready to take your skills to the next level with more powerful debugging tools.
Today, we are releasing a brand new course: Intermediate iOS Debugging. In this course, you’ll learn more about using breakpoints, some tricks using LLDB (Xcode’s debugger), and some of the tools Xcode provides to help with debugging.
Take a look at what’s inside:
Part 1: Improved Breakpoints and Logging
In part one, pick up some more advanced breakpoint techniques.
- Introduction This introductory video will preview the course and introduce the debugging framework that will be used throughout.
- Breakpoint Improvements 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.
- Logging Using Breakpoints Use breakpoints to add new logging without having to stop, add code, and recompile.
- Breaking in UIKit Learn how to use symbolic breakpoints to understand what’s going on in UIKit code. Add conditions to fine tune your breakpoints.
- Challenge: Logging Put your new-found skills to the test, logging what’s going on in framework code.
- Conclusion Review what you’ve learned in this section and see what’s coming up in Section 2.
Part 2: LLDB
In part two, tap into the power of the LLDB command line.
- Introduction In this video, see what’s coming up in the section and start learning about scope in LLDB.
- Inspecting Variables Learn about the three ways to inspect data in your app and the danger that comes with the power.
- Creating Variables Create new variables in LLDB and use them to make your debugging life easier.
- Challenge: Using Variables to Add Conditions Use LLDB variables between multiple breakpoints to make them more powerful.
- Changing UI See how to reflect changes in the UI without having to resume your app.
- Viewing Return Values Learn a new trick to view register values and use that to view the return value of a method.
- Breaking LLDB Use a flag to allow a method called from the LLDB command line to stop at breakpoints in that method.
- Conclusion Review what you’ve learned in this section and see what’s coming up in Section 3.
Part 3: Xcode
In the final part of the course, learn about some Xcode tools that can help you debug your apps.
- Introduction Preview the tools Xcode provides to simplify debugging.
- Application Language Use the scheme to make testing and switching between languages much easier and faster.
- Main Thread Checker Learn how to quickly spot issues where UIKit code is being called from a background thread.
- Malloc Stack Logging See how this tool helps pinpoint memory issues – taking you right to the line of code where a retained object was instantiated.
- Challenge: Viewing Properties from Debug Memory Graph In this challenge, use unsafeBitCast to view properties of objects in the debug memory graph. As a bonus, learn how to create command aliases.
- Runtime Issues See how Xcode finds and highlights issues with your app at runtime.
- Wireless Debugging Learn how easy it is to debug without having to tether your device to your Mac.
- Conclusion Review what you’ve learned in this course and see where to go next.
Where To Go From Here?
Want to check out the course? You can watch the first two videos for free!
The rest of the course is for raywenderlich.com subscribers only. Here’s how you can get access:
- If you are a raywenderlich.com subscriber: The first three videos are ready for you today! The rest of the course will be released over this week. You can check out the course here.
- If you are not a subscriber yet: What are you waiting for? Subscribe now to get access to our new Intermediate iOS Debugging course and our entire catalog of over 500 videos.
Stay tuned for more new and updated courses to come. I hope you enjoy the course! :]