Ortwin Gentz
Ortwin Gentz

Reputation: 54151

@dynamic properties not supported in GDB?

I'm using @dynamic properties in combination with -forwardInvocation: to generate properties at runtime (like described in this answer). Now, when I try to work with such a property (assuming name is such a dynamic property) in GDB I always get this:

(gdb) call (void) [myObject setName:@"foo"]
Target does not respond to this message selector.

(gdb) po [myObject name]
Target does not respond to this message selector.

Is there a switch in GDB to make this work?

Upvotes: 3

Views: 579

Answers (1)

adurdin
adurdin

Reputation: 1386

You can use po [myObject performSelector:@selector(name)] as a workaround, though it's quite awkward.

Upvotes: 8

Related Questions