I'm struggling to debug my Objective-C program with GDB. I have a function - (NSString *)reverse:(NSString *)someString
which I want to debug.
Here's how I set the breakpoint:
(gdb) break -[MyClass reverse:]
Now, when the code gets to the breakpoint, how do I print the addresses or even better the values of self
and the method argument? I've done some googling and found suggestions like po $rdx
but nothing I found works.
How can I solve this?