Calling methods from Xcode Debugger?

后端 未结 1 1185
灰色年华
灰色年华 2021-02-19 21:58

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

1条回答
  •  青春惊慌失措
    2021-02-19 22:19

    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):

    (gdb) call (void)[textField setStringValue: @"Bork"]

    —Quickies for gdb

    0 讨论(0)
提交回复
热议问题