Debugging Core Data SQL on iOS

You can pass a launch argument to your application from Xcode to enable debugging of SQL statements and Core Data timing to the console log.

In Xcode 4, edit your Schemes. Go to the Run phase, Arguments tab, and in the Arguments Passed On Launch area add:
-com.apple.CoreData.SQLDebug 1

You can tick this on and off as you like so you don’t have to delete it and won’t have to remember it!

This was posted 9 months ago. It has 0 notes.