More robust sequence formatter
This commit is contained in:
parent
f725ad7f1d
commit
0bf0817dd5
1 changed files with 8 additions and 1 deletions
|
|
@ -238,8 +238,15 @@ def sequence_formatter(output: str, valobj: SBValue, _dict: LLDBOpaque):
|
|||
if len(output) > 32:
|
||||
long = True
|
||||
break
|
||||
|
||||
child: SBValue = valobj.GetChildAtIndex(i)
|
||||
output += f"{child.value}, "
|
||||
|
||||
summary = child.summary
|
||||
if summary is None:
|
||||
summary = child.value
|
||||
if summary is None:
|
||||
summary = "{...}"
|
||||
output += f"{summary}, "
|
||||
if long:
|
||||
output = f"(len: {length}) " + output + "..."
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue