LLDB equivalent of `po` in GDB in Xcode4.1?
-
25-10-2019 - |
Question
There is a command po
in GDB which prints Objective-C object details. (with its description)
In LLDB, po
just print memory address. How can I see similar output of GDB in LLDB?
Solution
It is implemented nowadays. For completeness sake, it is an alias to this command:
expression -o --
For help with this and other LLDB commands, use the command help:
help expression
OTHER TIPS
Here are some handy GDB to LLDB command equivalents.
It looks like not implemented yet at this time. http://lldb.llvm.org/status.html
Don't know lldb, but maybe something to the effect of:
print _NSPrintForDebugger(obj)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow