I am trying to debug my Objective-C program and I need to print my variable unsigned long long in hexadecimal format. I am using the lldb debugger.
To print short as hex, you can use this :
(lldb) type format add --format hex short (lldb) print bit (short) $11 = 0x0000
However, I cannot get it to work for unsigned long long .
// 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
I am running an iOS application on a simulator, if that matters.
Mazyod
source share