DebugClients/Python3/DebugClientBase.py

changeset 935
bf9ee1e00bc5
parent 791
9ec2ac20e54e
child 945
8cd4d08fa9f6
child 1181
31d20dc43805
--- a/DebugClients/Python3/DebugClientBase.py	Fri Mar 04 20:03:47 2011 +0100
+++ b/DebugClients/Python3/DebugClientBase.py	Thu Mar 10 10:27:57 2011 +0100
@@ -691,7 +691,7 @@
             if cmd == RequestEval:
                 try:
                     value = eval(arg, self.currentThread.getCurrentFrame().f_globals,
-                                      self.currentThread.getCurrentFrame().f_locals)
+                                      self.currentThread.getCurrentFrameLocals())
                 except:
                     # Report the exception and the traceback
                     try:
@@ -722,7 +722,7 @@
             
             if cmd == RequestExec:
                 _globals = self.currentThread.getCurrentFrame().f_globals
-                _locals = self.currentThread.getCurrentFrame().f_locals
+                _locals = self.currentThread.getCurrentFrameLocals()
                 try:
                     code = compile(arg + '\n', '<stdin>', 'single')
                     exec(code, _globals, _locals)
@@ -887,7 +887,7 @@
                                     cf = cf.f_back
                                     frmnr -= 1
                                 _globals = cf.f_globals
-                                _locals = cf.f_locals
+                                _locals = self.currentThread.getCurrentFrameLocals()
                         # reset sys.stdout to our redirector (unconditionally)
                         if "sys" in _globals:
                             __stdout = _globals["sys"].stdout

eric ide

mercurial