Debug using Breakpoints in Xcode

Photo by bruce mars on Unsplash

Prerequisites:

Terminology

Why?

The quality of life improvement

The example

Do be aware that this view involves some StackView instances, and might be a bit annoying for beginners

Strategy 1 — Print log

Strategy 2 — breakpoint & po

Strategy 3 — conditional breakpoint & lldb actions

Conclusion

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store