@dynamic properties not supported in gdb?

I use @dynamic properties in conjunction with -forwardInvocation:to create properties at runtime (as described in this answer ). Now, when I try to work with such a property (assuming that it nameis such a dynamic property) in GDB, I always get the following:

(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 do this job?

+3
source share
1 answer

You can use po [myObject performSelector:@selector(name)]as a workaround, although this is rather inconvenient.

+8
source

Source: https://habr.com/ru/post/1794552/


All Articles