Tue, 27 Jul 2021 19:22:37 +0200
Fixed some little issues.
eric7/DebugClients/Python/DebugVariables.py | file | annotate | diff | comparison | revisions | |
eric7/Debugger/VariablesViewer.py | file | annotate | diff | comparison | revisions |
--- a/eric7/DebugClients/Python/DebugVariables.py Wed Jul 21 17:52:39 2021 +0200 +++ b/eric7/DebugClients/Python/DebugVariables.py Tue Jul 27 19:22:37 2021 +0200 @@ -208,7 +208,7 @@ try: return var[int(attribute)] except Exception: - return getattr(var, attribute, None) + return getattr(var, str(attribute), None) def getDictionary(self, var): """
--- a/eric7/Debugger/VariablesViewer.py Wed Jul 21 17:52:39 2021 +0200 +++ b/eric7/Debugger/VariablesViewer.py Tue Jul 27 19:22:37 2021 +0200 @@ -192,6 +192,7 @@ else: dvalue = VariableItem.unsized self.hasChildren = True + elif dtype in VariableItem.arrayTypes: self.childCount = int(dvalue) dvalue = VariableItem.noOfItemsStr.format(dvalue)