Active Filters: Tools

Topics

#6: Debugging Tips 🐞

Topics

Today we'll take a look at a few handy tips and tricks to know about when debugging.

Exception Breakpoint

Make sure to always add an exception breakpoint to every project. Xcode will pause anytime an exception is thrown and let us poke around.

Conditional Breakpoints

Break exactly when we want to.

Evaluate an Expression

With expression or e we can even modify values in our app, and then continue running.

Property Breakpoints

Here's one that is not as widely known as it should be:

If we set a breakpoint on the line of code containing a property definition, our application will pause anytime that property's value is changing and display a stack trace of the function calls that ultimately caused the change.

Watch Screenshot Magic is an open-source OS X application from Imperiopolis that lets us easily create perfect Apple Watch screenshots, ready to upload to iTunes Connect.



Features TLDR;

  • ⚡ Removes charging icon
  • ⏰ Clock always reads "10:09"
  • ⌚ Glances + notifications on blurred watch face
  • 👍 Adds page indicator to glances

More info about Watch Screenshot Magic can be found at git.io/wsm

Page 6 of 6