Post #1550612
2026-04-23 02:13 UTC
question to Obj-C fans:
does the Xcode debugger show you object values?
for me, po correctly runs debugDescription on all NSObject subclasses.
but in the left debugger area that shows values from the stack context: nope. C value-types. that's it.
i can "Edit Summary Format…" in the context menu. i can do:
{(NSString *)[$VAR debugDescription]}:s
it works for that one single type — better than nothing, but why is this no longer the default?
or am i holding it wrong?
Replies (2)
-
@isaiah@mastodon.social 2026-04-23 02:15
i dunno. maybe this is the behavior in swift too? i assumed it was part of the gradual death of obj-c support. but i honestly can't remember when this problem started. or maybe i've got some User Default in tangles and it's preventing it from working correctly? it wouldn't be the first time.
-
@bwebster@mastodon.social 2026-04-23 02:26
@isaiah My memory is fuzzy, but I don't think the default behavior of the variables view ever was to do a full call to -description or -debugDescription. Many common types have summary formats that ship with Xcode, but I think you've always had to specify a format for any of your own types.