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