Debug CoreData SQLite
Published on the 1st of September 2010Debugging some vague CoreData error can be tricky. In order to see the raw SQL in the console you can enable CoreData SQL debugging by adding an argument to your application.
- Open Xcode and your project
- From the main menu choose "Project" > "Edit active executable"
- Select the arguments tab
- Add the argument:
-com.apple.CoreData.SQLDebug 1
