Hi,
How do you see the runtime type and/or simple printed representation of an `Any` value in the debugger? For example, I have a `UIFont`. It's `descriptor.attributes` is a dictionary `[String: Any]`. I don't understand this print out of what's in the dictionary.
(lldb) p boldFont.fontDescriptor.fontAttributes[UIFontDescriptorTextStyleAttribute]!
(Any) $R13 = {
payload_data_0 = 0x00000001aacc8e38 @"CTFontEmphasizedUsage"
payload_data_1 = 0x0000000000000000
payload_data_2 = 0x0000000000000000
instance_type = 0x00000001017c8608
}
(lldb) p type(of:$R13)
(Any.Type) $R14 = 0x00000001017c8608
What does `payload_data_n` mean? Or the "@" sign? If that's a string as the value in the dictionary, is there some way to ask it the type and get the answer "String" or "Swift.String", and then be able to print the string, or float, or whatever.
(Xcode 8)
thanks,
Rob