Thu, 08 Sep 2011 19:38:39 +0200
Fixed an issue in the debugger not showing class variables.
DebugClients/Python/DebugClientBase.py | file | annotate | diff | comparison | revisions | |
DebugClients/Python3/DebugClientBase.py | file | annotate | diff | comparison | revisions |
--- a/DebugClients/Python/DebugClientBase.py Thu Sep 08 18:14:34 2011 +0200 +++ b/DebugClients/Python/DebugClientBase.py Thu Sep 08 19:38:39 2011 +0200 @@ -1328,6 +1328,8 @@ try: exec 'mdict = dict%s.__dict__' % access ndict.update(mdict) # __IGNORE_WARNING__ + exec 'mcdict = dict%s.__class__.__dict__' % access + ndict.update(mcdict) # __IGNORE_WARNING__ exec 'obj = dict%s' % access if mdict and not "sipThis" in mdict.keys(): # __IGNORE_WARNING__ del rvar[0:2] @@ -1350,6 +1352,7 @@ else: try: ndict.update(dict[var[i]].__dict__) + ndict.update(dict[var[i]].__class__.__dict__) del rvar[0] obj = dict[var[i]] except:
--- a/DebugClients/Python3/DebugClientBase.py Thu Sep 08 18:14:34 2011 +0200 +++ b/DebugClients/Python3/DebugClientBase.py Thu Sep 08 19:38:39 2011 +0200 @@ -1332,6 +1332,10 @@ mdict = loc["mdict"] obj = loc["obj"] ndict.update(mdict) + loc = {"dict": dict} + exec('mcdict = dict{0!s}.__class__.__dict__'\ + .format(access), globals(), loc) + ndict.update(loc["mcdict"]) if mdict and not "sipThis" in mdict.keys(): del rvar[0:2] access = "" @@ -1357,6 +1361,7 @@ else: try: ndict.update(dict[var[i]].__dict__) + ndict.update(dict[var[i]].__class__.__dict__) del rvar[0] obj = dict[var[i]] except: