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", {