Skip to content

Instantly share code, notes, and snippets.

@suhitp
Created July 19, 2023 06:47
Show Gist options
  • Save suhitp/d851024ab5038d71742feda9ae66331c to your computer and use it in GitHub Desktop.
Save suhitp/d851024ab5038d71742feda9ae66331c to your computer and use it in GitHub Desktop.
CoreData Debugging in Xcode
https://useyourloaf.com/blog/debugging-core-data/
// Add two launch arguments:
-com.apple.CoreData.SQLDebug 1
-com.apple.CoreData.ConcurrencyDebug 1
// Leave the SQLDebug argument disabled until needed
// Add three environment variables:
SQLITE_ENABLE_THREAD_ASSERTIONS 1
SQLITE_AUTO_TRACE 1
SQLITE_ENABLE_FILE_ASSERTIONS 1
// Leave the SQLITE_AUTO_TRACE variable disabled until needed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment