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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 06 May 2013 19:58:43 +0200
changeset 2648
43a3bec63c09
parent 2647
70cfd8984a3d
child 2650
1b495c651868

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

DebugClients/Python/DebugBase.py file | annotate | diff | comparison | revisions
DebugClients/Python3/DebugBase.py file | annotate | diff | comparison | revisions
diff -r 70cfd8984a3d -r 43a3bec63c09 DebugClients/Python/DebugBase.py
--- a/DebugClients/Python/DebugBase.py	Sun May 05 19:25:41 2013 +0200
+++ b/DebugClients/Python/DebugBase.py	Mon May 06 19:58:43 2013 +0200
@@ -669,6 +669,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))
diff -r 70cfd8984a3d -r 43a3bec63c09 DebugClients/Python3/DebugBase.py
--- a/DebugClients/Python3/DebugBase.py	Sun May 05 19:25:41 2013 +0200
+++ b/DebugClients/Python3/DebugBase.py	Mon May 06 19:58:43 2013 +0200
@@ -677,6 +677,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