Add -com.apple.CoreData.SQLDebug 1 as a launch argument and you can watch exactly what SwiftData is doing under the hood. Tip: don't delete it when you're done, just uncheck the box so it's ready when you need it again 🔍 www.hackingwithswift.com/quick-start/...
hackingwithswift.com
Using launch arguments to debug SwiftData and Core Data - a free SwiftData by Example tutorial
Learn Swift coding for iOS with these free tutorials