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

后端 未结 3 459
情深已故
情深已故 2020-12-01 06:18

According to Apple documentation on debugging Core Data it says we should be able to pass an argument to the application which will output the SQL core data sends to SQLite.

3条回答
  •  被撕碎了的回忆
    2020-12-01 06:56

    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

提交回复
热议问题