I'm wondering if it's possible to change the description of variables in the Xcode debugger for example:

I'd like to change the text in the red boxes to depend on the object itself. Kind of how the NSArray has @"10 elements" as it's description.
From Xcode Help:
To edit the summary format of a variable, Control-click the variable and choose Edit Summary Format… from the shortcut menu.
In the popover, enter a valid LLDB expression and click Done. This expression overrides the default formatter and is used to create a summary for all variables of this type.
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