title: How do I get the CoreData Debug argument to output to the console?
body: <p>According to <a href="http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdTroubleshooting.html#//apple_ref/doc/uid/TP40002320-SW15" rel="noreferrer">Apple documentation on debugging Core Data</a> it says we should be able to pass an argument to the application which will output the SQL core data sends to SQLite.  </p>
  
  <p>I have gone into the arguments tab of my executable in XCode and specified the arguments:</p>
  
  <pre><code>-com.apple.CoreData.SQLDebug 1
  </code></pre>
  
  <p>However, I see no SQL in the console.  I then tried to use this parameter in the CoreDataBooks application provided by Apple just in case there was some other issue in MY program.  </p>
  
  <p>Even in Apple's example I get no SQL output in the console.</p>
  
  <p>Am I doing something wrong? Is Apple's documentation wrong? Should I be looking someplace other than the console? Has anyone else had success with this argument?</p>
  
  <p><strong>UPDATE:</strong> Apple has since fixed the output bug with newer releases of XCode; however, to be clear on the final solution:</p>
  
  <p><strong>The arguments are two separate arguments and should be entered in the arguments tab as such.  -com.apple.CoreData.SQLDebug is one parameter and the value 1 is the second parameter.</strong> </p>