Xcode 4.2のCoreDataでSQLite のデバッグログを出力する方法
Xcode 4.2でやり方が変わっていたのでメモ
2.Argumentsタブを選択しArguments Passed On Launchに"-com.apple.CoreData.SQLDebug 1"を追加
以上でコンソールにSQLログが出力されます。
参照元
CoreData で SQLite のデバッグログを出力するには
You can pass the following as an argument to the application:
- com.apple.CoreData.SQLDebug 1Edit your Scheme, add it in "Arguments Passed On Launch"
http://stackoverflow.com/questions/8463039/how-to-set-sqldebug-in-xcode-4-2-to-show-coredata-queries