xcode - LLDB Type Summary with properties (NSManagedObject) -
after viewing wwdc2013 lldb debug session, want add custom type formatter 1 nsmanagedobject subclasses. can typing in debugger
type summary -add myclass --summary-string "${var._name}"
this works on variables, not on methods, hence properties. i've tried using python script via valobj.getchildmemberwithname without success.
how can display property on nsmanagedobject subclass on lldb ?
more info: http://lldb.llvm.org/varformats.html
long story short, realized ${var.foo} syntax works ivars. not methods. not properties (which methods, give or take syntactic sugar).
i have been thinking syntax run expressions in string summary format. ${expr:[$var selector]} or ${expr:3+$var}
lacking that, workaround go python, , use sbframe.evaluateexpression command. there examples of python formatters in lldb source code, , on website can use starting point.
Comments
Post a Comment