【发布时间】:2012-09-11 13:16:15
【问题描述】:
我正在尝试调试我的 Objective-C 程序,我需要以十六进制打印我的 unsigned long long 变量。我正在使用lldb 调试器。
为了将short 打印为十六进制,you can use this:
(lldb) type format add --format hex short
(lldb) print bit
(short) $11 = 0x0000
但是,我无法让它为 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
我正在模拟器上运行一个 iOS 应用程序,如果这有什么不同的话。
【问题讨论】:
标签: objective-c debugging hex lldb unsigned-long-long-int