Backend SQL Visibility

At face value, examining the console logs for Core Data results is rather underwhelming. How do you know what’s really going on under the covers? What is Core Data actually doing to get your data into the persistent store? Is it doing its job properly? What SQL queries are being generated to provide the seamless Core Data experience? Are duplicate objects being inserted every time you run the app in the simulator?

These questions can be answered with an extremely verbose debug option that provides plenty of information regarding what’s going on under the hood. The debug option will expose the auto-generated SQL queries and give some great insight to the workings of Core Data.

Update Grocery Dude as follows to enable SQL ...

Get Learning Core Data for iOS: A Hands-On Guide to Building Core Data Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.