How do I get the CoreData Debug argument to output to the console? How do I get the CoreData Debug argument to output to the console? sqlite sqlite

How do I get the CoreData Debug argument to output to the console?


XCode 4 (final) seems to be inconsistent.

Using one argument works on the device, but fails in the simulator:

-com.apple.CoreData.SQLDebug 1

Using two arguments works on the device and in the simulator:

-com.apple.CoreData.SQLDebug

1


Are you entering those as a single argument? It should be 2 arguments: "-com.apple.CoreData.SQLDebug" and "1".

More Info: You're actually overriding a "default" here. Take a look at the Apple Docs on argument-based defaults for more information. You'll see that the name and value are 2 separate arguments.


I too banged my head against this for a while. Turns out SQLDebug with Core Data is not supported on iPhone yet. It is tracked by Apple bug ID 6868205.