Fixes for the debugger backends causing failures dumping variables. 5_2_x

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Wed, 21 Mar 2012 20:14:45 +0100
branch
5_2_x
changeset 1728
47aefd5dc62f
parent 1724
361b8dea9251
child 1735
f0b1fcdd98cb

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
--- a/DebugClients/Python/DebugClientBase.py	Tue Mar 20 19:47:18 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	Tue Mar 20 19:47:18 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)

eric ide

mercurial