eric7/DebugClients/Python/DebugClientBase.py

branch
eric7
changeset 8363
e0890180e16a
parent 8331
960ce05a265c
child 8416
1b8e456475a1
diff -r 025f3037dcef -r e0890180e16a eric7/DebugClients/Python/DebugClientBase.py
--- a/eric7/DebugClients/Python/DebugClientBase.py	Sun May 23 11:55:39 2021 +0200
+++ b/eric7/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