Reputation: 7348
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.
Upvotes: 1
Views: 532
Reputation: 4239
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.
Hope this Helps
Upvotes: 0