title: LLDB swift print object
body: <p>Im a little dumfounded with how to use LLDB to inspect an object in a swift project. In this particular case I'm using NSJSONSerializer to serialize a small chunk of JSON and I'd like to inspect the value.  In Xcode 5.1 this was super simple, just type "po json" at the lldb prompt and I'd get what I wanted.  Now the commands po and print fail me by printing out mostly garbage.  I even tried calling the description property because that works with some swift types but that still doesn't work.  As a last resort I used an expression with a println statement and finally that works.  Surely there must be a better simpler way? Here is the output of LLDB:</p>
  
  <pre><code>(lldb) print json
  (AnyObject?) $R4 = (instance_type = Builtin.RawPointer = 0x00007ff05c0c49d0 -&gt;     0x0000000107ef32c8 (void *)0x0000000107ef32f0: __NSCFDictionary)
  (lldb) po json
  (instance_type = Builtin.RawPointer = 0x00007ff05c0c49d0 -&gt; 0x0000000107ef32c8 (void  *)0x0000000107ef32f0: __NSCFDictionary)
   {
    instance_type = 0x00007ff05c0c49d0 -&gt; 0x0000000107ef32c8 (void *)0x0000000107ef32f0:  __NSCFDictionary
  }
  (lldb) print json.description?
  error: &lt;EXPR&gt;:1:1: error: 'Optional&lt;AnyObject&gt;' does not have a member named 'description'
  json.description?
  ^    ~~~~~~~~~~~
  
  (lldb) po json.description?
  error: &lt;EXPR&gt;:1:1: error: 'Optional&lt;AnyObject&gt;' does not have a member named    'description'
  json.description?
  ^    ~~~~~~~~~~~
  (lldb) expression
  Enter expressions, then terminate with an empty line to evaluate:
  1 println(json)
  2 
  Optional({
      errors =     {
          "authorizations.provider_user_id" =         (
              "has already been taken"
          );
      };
  })
  (lldb) 
  </code></pre>