How to Debug a SwiftUI Preview Crash in Xcode Now

Published: 01 January 1970
on channel: Paul Solt
585
3

How do you make sense of a preview crash? How do you use the debugger in Xcode?

Debugging effectively in Xcode takes practice, so it helps to see how it works and learn from more experienced developers.
In this video I debug a problem where my index is going out of bounds and causing preview to crash randomly.

When you have more moving parts it can be harder to spot the problem. In this code, you can see how using the Published property with a binding is causing problems between the SwiftUI update loop and the data model it is representing.

#debugging #swiftUI #crash #ios #xcode #iosdeveloper #debug #lldb


Watch video How to Debug a SwiftUI Preview Crash in Xcode Now online without registration, duration hours minute second in high quality. This video was added by user Paul Solt 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 585 once and liked it 3 people.