eric6/DebugClients/Python/DebugClientBase.py

changeset 8349
b43cf23955aa
parent 8328
e22ce9001905
child 8400
b3eefd7e58d1
child 8434
a105f31ba10f
--- a/eric6/DebugClients/Python/DebugClientBase.py	Thu May 20 18:17:29 2021 +0200
+++ b/eric6/DebugClients/Python/DebugClientBase.py	Fri May 21 18:04:01 2021 +0200
@@ -1511,7 +1511,7 @@
             if scope:
                 varDict = self.debugMod.__dict__
             else:
-                scope = -1
+                scope = -2
         elif scope:
             varDict = f.f_globals
         elif f.f_globals is f.f_locals:
@@ -1519,7 +1519,7 @@
         else:
             varDict = f.f_locals
         
-        varlist = [] if scope == -1 else self.__formatVariablesList(
+        varlist = [] if scope < 0 else self.__formatVariablesList(
             varDict, scope, filterList)
         
         self.sendJsonCommand("ResponseVariables", {

eric ide

mercurial