Fixed an issue in the debugger backends remembering the frame local scope. 5_3_x

Mon, 06 May 2013 19:58:43 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 06 May 2013 19:58:43 +0200
branch
5_3_x
changeset 2649
3e42ab1cd03b
parent 2645
ff5e8555e69d
child 2651
93439c60fe45

Fixed an issue in the debugger backends remembering the frame local scope.
(grafted from 43a3bec63c091d5c7222b17afbfd075a2c3e8750)

DebugClients/Python/DebugBase.py file | annotate | diff | comparison | revisions
DebugClients/Python3/DebugBase.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugBase.py	Sun May 05 18:21:59 2013 +0200
+++ b/DebugClients/Python/DebugBase.py	Mon May 06 19:58:43 2013 +0200
@@ -653,6 +653,8 @@
                 frlist.reverse()
                 
                 self.currentFrame = frlist[0]
+                self.currentFrameLocals = frlist[0].f_locals
+                # remember the locals because it is reinitialized when accessed
                 
                 for fr in frlist:
                     filename = self._dbgClient.absPath(self.fix_frame_filename(fr))
--- a/DebugClients/Python3/DebugBase.py	Sun May 05 18:21:59 2013 +0200
+++ b/DebugClients/Python3/DebugBase.py	Mon May 06 19:58:43 2013 +0200
@@ -661,6 +661,8 @@
                 frlist.reverse()
                 
                 self.currentFrame = frlist[0]
+                self.currentFrameLocals = frlist[0].f_locals
+                # remember the locals because it is reinitialized when accessed
                 
                 for fr in frlist:
                     filename = self._dbgClient.absPath(self.fix_frame_filename(fr))

eric ide

mercurial