--- a/eric6/Debugger/DebugUI.py Sat Dec 05 18:25:31 2020 +0100 +++ b/eric6/Debugger/DebugUI.py Sun Dec 06 17:53:05 2020 +0100 @@ -122,10 +122,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) @@ -164,12 +164,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): """ @@ -1325,8 +1326,8 @@ @type str """ self.debugServer.remoteClientVariables( - debuggerId, 0, self.localsVarFilter) - + debuggerId, 0, self.__localsVarFilterList) + def __getClientVariables(self, debuggerId): """ Private method to request the global and local variables. @@ -1340,7 +1341,7 @@ """ # get globals first self.debugServer.remoteClientVariables( - debuggerId, 1, self.globalsVarFilter) + debuggerId, 1, self.__globalsVarFilterList) # the local variables are requested once we have received the globals def __clientVariables(self, scope, variables, debuggerId): @@ -1363,7 +1364,7 @@ # now get the local variables self.debugServer.remoteClientVariables( self.getSelectedDebuggerId(), - 0, self.localsVarFilter) + 0, self.__localsVarFilterList) elif scope == 0: self.debugViewer.showVariables(variables, False) elif scope == -1: @@ -1504,11 +1505,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): """