title: (lldb) Print unsigned long long in hex
body: <p>I am trying to debug my Objective-C program, and I need to print my <code>unsigned long long</code> variable in hex. I am using the <code>lldb</code> debugger.</p>
  
  <p>In order to print <code>short</code> as hex, <a href="http://lldb.llvm.org/varformats.html" rel="noreferrer">you can use this</a>:</p>
  
  <pre><code>(lldb) type format add --format hex short
  (lldb) print bit
  (short) $11 = 0x0000
  </code></pre>
  
  <p>However, I can't make it work for <code>unsigned long long</code>. </p>
  
  <pre><code>// failed attempts:
  (lldb) type format add --format hex (unsigned long long)
  (lldb) type format add --format hex unsigned long long
  (lldb) type format add --format hex unsigned decimal
  (lldb) type format add --format hex long long
  (lldb) type format add --format hex long
  (lldb) type format add --format hex int
  </code></pre>
  
  <p>I am running an iOS app on simulator, if that makes any difference.</p>