1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import lldb def summary(valobj, dict): return f"[{valobj.GetChildAtIndex(0).GetValue()}]" def __lldb_init_module(debugger, dict): typeName = "Box<.*$" debugger.HandleCommand( 'type summary add -x "' + typeName + '" --python-function ' + f"{__name__}.summary" )