--- a/eric6/Debugger/DebugUI.py Sun Dec 06 12:46:00 2020 +0100 +++ b/eric6/Debugger/DebugUI.py Sun Dec 06 17:43:11 2020 +0100 @@ -115,10 +115,10 @@ self.__continue, self.__step, self.__stepOver, self.__stepOut, self.__stepQuit, self.__runToCursor, self.__moveInstructionPointer ] - self.localsVarFilter, self.globalsVarFilter = ( + self.__localsVarFilterList, self.__globalsVarFilterList = ( Preferences.getVarFilters()) self.debugViewer.setVariablesFilter( - self.globalsVarFilter, self.localsVarFilter) + self.__globalsVarFilterList, self.__localsVarFilterList) # Connect the signals emitted by the debug-server debugServer.clientGone.connect(self.__clientGone) @@ -158,12 +158,13 @@ Public method to get the variables filter for a scope. @param scope flag indicating global (True) or local (False) scope - @return filters list (list of integers) + @return filters list + @rtype list of str """ if scope: - return self.globalsVarFilter[:] + return self.__globalsVarFilterList[:] else: - return self.localsVarFilter[:] + return self.__localsVarFilterList[:] def initActions(self): """ @@ -1282,7 +1283,7 @@ """ Private method to handle a change of the client's current thread. """ - self.debugServer.remoteClientVariables(0, self.localsVarFilter) + self.debugServer.remoteClientVariables(0, self.__localsVarFilterList) def __getClientVariables(self): """ @@ -1293,7 +1294,7 @@ This happens in the method '__clientVariables'. """ # get globals first - self.debugServer.remoteClientVariables(1, self.globalsVarFilter) + self.debugServer.remoteClientVariables(1, self.__globalsVarFilterList) # the local variables are requested once we have received the globals def __clientVariables(self, scope, variables): @@ -1309,7 +1310,8 @@ self.debugViewer.showVariables(variables, True) if scope == 1: # now get the local variables - self.debugServer.remoteClientVariables(0, self.localsVarFilter) + self.debugServer.remoteClientVariables( + 0, self.__localsVarFilterList) elif scope == 0: self.debugViewer.showVariables(variables, False) elif scope == -1: @@ -1435,11 +1437,14 @@ """ from .VariablesFilterDialog import VariablesFilterDialog dlg = VariablesFilterDialog(self.ui, 'Filter Dialog', True) - dlg.setSelection(self.localsVarFilter, self.globalsVarFilter) + dlg.setSelection(self.__localsVarFilterList, + self.__globalsVarFilterList) if dlg.exec() == QDialog.Accepted: - self.localsVarFilter, self.globalsVarFilter = dlg.getSelection() + self.__localsVarFilterList, self.__globalsVarFilterList = ( + dlg.getSelection() + ) self.debugViewer.setVariablesFilter( - self.globalsVarFilter, self.localsVarFilter) + self.__globalsVarFilterList, self.__localsVarFilterList) def __configureExceptionsFilter(self): """