When seeing an instance variable’s address in the debugger, how can one get the class by entering in the given memory address?
I know that the opposite (getting the address from an instance) is possible with p someObjectInstance in the debugger or NSLog(@"%p", someObjectInstance); from within the code. Is there a similar way to do this the other way around?
What you are asking for is VERY unsafe. Accessing an unknown memory location is generally a bad idea, but since you asked:
EDIT: If inside
gdborlldb, you can do the following:If running from code, however, use the following;