1436 if scope == 1: |
1436 if scope == 1: |
1437 varDict = self.debugMod.__dict__ |
1437 varDict = self.debugMod.__dict__ |
1438 else: |
1438 else: |
1439 scope = -2 |
1439 scope = -2 |
1440 elif scope == 1: |
1440 elif scope == 1: |
1441 varDict = f.f_globals |
1441 varDict = dict(f.f_globals) |
1442 elif f.f_globals is f.f_locals: |
1442 elif f.f_globals == f.f_locals: |
1443 scope = -1 |
1443 scope = -1 |
1444 else: |
1444 else: |
1445 varDict = f.f_locals |
1445 varDict = dict(f.f_locals) |
1446 |
1446 |
1447 # Update known types list |
1447 # Update known types list |
1448 DebugVariables.updateTypeMap() |
1448 DebugVariables.updateTypeMap() |
1449 |
1449 |
1450 varlist = ( |
1450 varlist = ( |
1484 if scope == 1: |
1484 if scope == 1: |
1485 varDict = self.debugMod.__dict__ |
1485 varDict = self.debugMod.__dict__ |
1486 else: |
1486 else: |
1487 scope = -1 |
1487 scope = -1 |
1488 elif scope == 1: |
1488 elif scope == 1: |
1489 varDict = f.f_globals |
1489 varDict = dict(f.f_globals) |
1490 elif f.f_globals is f.f_locals: |
1490 elif f.f_globals == f.f_locals: |
1491 scope = -1 |
1491 scope = -1 |
1492 else: |
1492 else: |
1493 varDict = f.f_locals |
1493 varDict = dict(f.f_locals) |
1494 |
1494 |
1495 varlist = [] |
1495 varlist = [] |
1496 |
1496 |
1497 # fast path if variable was looked up before (see elif) |
1497 # fast path if variable was looked up before (see elif) |
1498 if scope != -1 and str(var) in self.resolverCache[scope]: |
1498 if scope != -1 and str(var) in self.resolverCache[scope]: |