1509 |
1509 |
1510 if f is None: |
1510 if f is None: |
1511 if scope: |
1511 if scope: |
1512 varDict = self.debugMod.__dict__ |
1512 varDict = self.debugMod.__dict__ |
1513 else: |
1513 else: |
1514 scope = -1 |
1514 scope = -2 |
1515 elif scope: |
1515 elif scope: |
1516 varDict = f.f_globals |
1516 varDict = f.f_globals |
1517 elif f.f_globals is f.f_locals: |
1517 elif f.f_globals is f.f_locals: |
1518 scope = -1 |
1518 scope = -1 |
1519 else: |
1519 else: |
1520 varDict = f.f_locals |
1520 varDict = f.f_locals |
1521 |
1521 |
1522 varlist = [] if scope == -1 else self.__formatVariablesList( |
1522 varlist = [] if scope < 0 else self.__formatVariablesList( |
1523 varDict, scope, filterList) |
1523 varDict, scope, filterList) |
1524 |
1524 |
1525 self.sendJsonCommand("ResponseVariables", { |
1525 self.sendJsonCommand("ResponseVariables", { |
1526 "scope": scope, |
1526 "scope": scope, |
1527 "variables": varlist, |
1527 "variables": varlist, |