Is there a way to do a "po" or print object by the object's id/memory location? For instance if I have an object with id: 0xee63d60 can I show what is in that object? I know I can use:
(gdb) info malloc-history 0xee63d60
to get the StackTrace, which is very helpful but I would love to see what is in that object or even what it's name is.
preguntado el 03 de mayo de 12 a las 17:05
I believe if you are paused in a "break point" you can right-click an object and select Print Object. This should print out the "description" of the object. See +(NSString *)description of the NSObject class. You can override this method if you need something more specific.
Espero que esto ayude