Debugging Core Data

You can enable debugging core data to log the actual SQL sent to SQLite. This information can be useful to find some performance problems.

Debugging Core Data

Go to Product > Edit Scheme (or press ⌘ + <).

Debugging Core Data - Xcode Scheme Menu
Xcode Scheme Menu

Then go to the main panel’s ‘arguments’ Tab, and add 1

Debugging Core Data - XCode Edit Scheme
XCode Edit Scheme

Press OK and your are all set.

Now, all core data operations will appear in console

Add comment

By Daniel Passos

Daniel Passos

Android tech leader at Red Hat, Open source addicted, geek, teacher, traveler, Android and iOS freak, DJ in spare time and bodybuilding lover

Get in touch