File tree 1 file changed +6
-2
lines changed
packages/debugger/src/robotcode/debugger
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1442,20 +1442,24 @@ def get_variables(
1442
1442
)
1443
1443
elif entry .suite_id () == variables_reference :
1444
1444
globals = context .variables ._global .as_dict ()
1445
+ vars = entry .get_first_or_self ().variables ()
1446
+ vars_dict = vars .as_dict () if vars is not None else {}
1445
1447
result .update (
1446
1448
{
1447
1449
k : self ._create_variable (k , v )
1448
1450
for k , v in context .variables ._suite .as_dict ().items ()
1449
- if k not in globals or globals [k ] != v
1451
+ if ( k not in globals or globals [k ] != v ) and ( k in vars_dict )
1450
1452
}
1451
1453
)
1452
1454
elif entry .test_id () == variables_reference :
1453
1455
globals = context .variables ._suite .as_dict ()
1456
+ vars = entry .get_first_or_self ().variables ()
1457
+ vars_dict = vars .as_dict () if vars is not None else {}
1454
1458
result .update (
1455
1459
{
1456
1460
k : self ._create_variable (k , v )
1457
1461
for k , v in context .variables ._test .as_dict ().items ()
1458
- if k not in globals or globals [k ] != v
1462
+ if ( k not in globals or globals [k ] != v ) and ( k in vars_dict )
1459
1463
}
1460
1464
)
1461
1465
elif entry .local_id () == variables_reference :
You can’t perform that action at this time.
0 commit comments