Enable SQL Debugging in Xcode4

iOS Development,Mac OS X,Objective-C 6 September 2011 0 Comments



If you would like to output the SQL being generated by Core Data, here is the quick steps:

  1. Go to Product -> Edit Scheme
  2. Choose Run YourAppName.app
  3. Add -com.apple.CoreData.SQLDebug 1 to the Arguments Passed On Launch panel