what's the correct way to call a method from the Xcode debugger command line ?
For example if I'm inside the sort: method of my class A (using the debugger), how can I call debugSort: method that belongs to class A too ?
( My code is Objective-C btw )
To call an Objective-C method in the gdb console, you have to cast the return type (since gdb doesn't really know what the return value is):—Quickies for gdb
(gdb) call (void)[textField setStringValue: @"Bork"]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With