mica
mica

Reputation: 4308

logging sqlite access in Coredata

I´m using CoreData with a sqlite store. Is it possible to log the sqlite queries CoreData sends to the DB-layer.

Thanks

Upvotes: 0

Views: 546

Answers (1)

Evgeny Shurakov
Evgeny Shurakov

Reputation: 6082

Pass the following as an argument to the application to log to stderr the actual SQL sent to SQLite:

-com.apple.CoreData.SQLDebug 1

https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CoreData/Articles/cdTroubleshooting.html#//apple_ref/doc/uid/TP40002320-SW1

Upvotes: 1

Related Questions