Wednesday, July 21, 2010

How to enable SQL debugging for Core Data in XCode

Right click on the project executable and click “Get Info.” Navigate to the Arguments tab and add the following argument: “-com.apple.CoreData.SQLDebug 1″.

When the project is running, you should see the sql used in the console.

Thanks to http://www.raywenderlich.com/934/core-data-tutorial-getting-started

No comments:

Post a Comment