views:

63

answers:

1

Hello, 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 )

+2  A: 
Vincent Gable
You can also use `print` or `po`. The latter will send the return value (which must be an object) a `debugDescription` message and print the string that that message returns. In practice, this means `po` prints the object—which is what its name means.
Peter Hosey