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 - Core Data Debug Menu
Core Data Debug Menu

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

Debugging Core Data - Data Debug Arguments
Data Debug Arguments

Press OK.

Now, all core data operations will appear in the console

Add comment

By Daniel Passos