Reputation: 8138
I was wondering if there is an option to log SQL queries in CoreData?
Upvotes: 9
Views: 2998
Reputation: 8138
I also found out that you can also get sql file out of your Documents folder. Open Terminal and paste this line in (replace values in slash-brackets with yours):
/Users/<YourUsername>/Library/Application Support/iPhone Simulator/<SimulatorVersion>/Applications/<AppID>/Documents/<SQLDBName>.sqlite
Just open file in your favorite SQL query browser.
Upvotes: 0
Reputation:
Yep, you may do that by putting -com.apple.CoreData.SQLDebug 1
to "Arguments Passed On Launch"
Upvotes: 24