Fixes for the debugger backends causing failures dumping variables.

Wed, 21 Mar 2012 20:14:45 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 21 Mar 2012 20:14:45 +0100
changeset 1727
9355815a4403
parent 1726
5d3132740ece
child 1729
66b9dc45f2bd

Fixes for the debugger backends causing failures dumping variables.

DebugClients/Python/DebugClientBase.py file | annotate | diff | comparison | revisions
DebugClients/Python3/DebugClientBase.py file | annotate | diff | comparison | revisions
Documentation/Help/source.qch file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugClientBase.py	Wed Mar 21 15:19:16 2012 +0100
+++ b/DebugClients/Python/DebugClientBase.py	Wed Mar 21 20:14:45 2012 +0100
@@ -1333,6 +1333,9 @@
                         try:
                             exec 'mdict = dict%s.__dict__' % access
                             ndict.update(mdict)     # __IGNORE_WARNING__
+                        except:
+                            pass
+                        try:
                             exec 'mcdict = dict%s.__class__.__dict__' % access
                             ndict.update(mcdict)     # __IGNORE_WARNING__
                             exec 'obj = dict%s' % access
@@ -1394,7 +1397,7 @@
                     vlist = []
             else:
                 qtVariable = False
-                if len(udict) > 0:
+                if len(dict) == 0 and len(udict) > 0:
                     if access:
                         exec 'qvar = udict%s' % access
                     # this has to be in line with VariablesViewer.indicators
--- a/DebugClients/Python3/DebugClientBase.py	Wed Mar 21 15:19:16 2012 +0100
+++ b/DebugClients/Python3/DebugClientBase.py	Wed Mar 21 20:14:45 2012 +0100
@@ -1337,6 +1337,9 @@
                             mdict = loc["mdict"]
                             obj = loc["obj"]
                             ndict.update(mdict)
+                        except:
+                            pass
+                        try:
                             loc = {"dict": dict}
                             exec('mcdict = dict{0!s}.__class__.__dict__'\
                                  .format(access), globals(), loc)
@@ -1410,7 +1413,7 @@
                     vlist = []
             else:
                 qtVariable = False
-                if len(udict) > 0:
+                if len(dict) == 0 and len(udict) > 0:
                     if access:
                         loc = {"udict": udict}
                         exec('qvar = udict{0!s}'.format(access), globals(), loc)
Binary file Documentation/Help/source.qch has changed

eric ide

mercurial