znq
znq

Reputation: 44973

LLDB: What's the class of an object?

Is there a way to find out the class of an object in LLDB, while the object itself is represented by an id. Something like isKindOfClass, that returns what class it actually is and not just id.

Upvotes: 3

Views: 4254

Answers (2)

Mistake78
Mistake78

Reputation: 61

For Swift, po type(of:myObject) works.

Upvotes: 0

znq
znq

Reputation: 44973

It seems po [myObject class] works. If anyone has a better solution please post it.

Upvotes: 9

Related Questions