DebugClients/Python/DebugClientBase.py

branch
5_1_x
changeset 936
f6bc16bd4198
parent 803
86f10944dc83
child 945
8cd4d08fa9f6
child 1181
31d20dc43805
diff -r d8a11b6a7d49 -r f6bc16bd4198 DebugClients/Python/DebugClientBase.py
--- a/DebugClients/Python/DebugClientBase.py	Fri Mar 04 18:28:04 2011 +0100
+++ b/DebugClients/Python/DebugClientBase.py	Thu Mar 10 10:29:12 2011 +0100
@@ -695,7 +695,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:
@@ -725,7 +725,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 in _globals, _locals
@@ -888,7 +888,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 _globals.has_key("sys"):
                             __stdout = _globals["sys"].stdout

eric ide

mercurial