LLDB equivalent of `po` in GDB in Xcode4.1?

GDB has a po command that prints the details of an Objective-C object. (with description) In LLDB, po just type the memory address. How can I see the similar output of GDB in LLDB?

+6
source share
4 answers

It is implemented today. For completeness, this is an alias of this command:

 expression -o -- 

For help with this and other LLDB commands, use the help command:

 help expression 
+13
source
+4
source

Currently, it looks not yet implemented. http://lldb.llvm.org/status.html

+3
source

I don’t know lldb, but there might be something to work:

 print _NSPrintForDebugger(obj) 
+1
source

Source: https://habr.com/ru/post/893431/


All Articles