Skip to content

Commit 456ab2c

Browse files
committed
fix(debugger): filling zeros are now added to the name of an element so that elements are sorted correctly in the variable view at debugging time
1 parent a19b374 commit 456ab2c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/debugger/src/robotcode/debugger/debugger.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1508,8 +1508,11 @@ def get_variables(
15081508

15091509
if value is not None:
15101510
c = 0
1511+
1512+
padding = len(str(len(value)))
1513+
15111514
for i, v in enumerate(value, start or 0):
1512-
result[str(i)] = self._create_variable(str(i), v)
1515+
result[str(i)] = self._create_variable(str(i).zfill(padding), v)
15131516
c += 1
15141517
if count is not None and c >= count:
15151518
break

0 commit comments

Comments
 (0)