DebugClients/Python3/DebugClientBase.py

changeset 4309
cc9c62f55413
parent 4270
fd51fbdfdd69
child 4366
9445c7cb991f
diff -r 6a8ec996a49c -r cc9c62f55413 DebugClients/Python3/DebugClientBase.py
--- a/DebugClients/Python3/DebugClientBase.py	Sat Jul 04 14:46:40 2015 +0200
+++ b/DebugClients/Python3/DebugClientBase.py	Sat Jul 04 17:31:46 2015 +0200
@@ -770,7 +770,7 @@
                     value = eval(
                         arg,
                         self.currentThread.getCurrentFrame().f_globals,
-                        self.currentThread.getCurrentFrameLocals())
+                        self.currentThread.getFrameLocals(0))
                 except:
                     # Report the exception and the traceback
                     try:
@@ -801,7 +801,7 @@
             
             if cmd == DebugProtocol.RequestExec:
                 _globals = self.currentThread.getCurrentFrame().f_globals
-                _locals = self.currentThread.getCurrentFrameLocals()
+                _locals = self.currentThread.getFrameLocals(0)
                 try:
                     code = compile(arg + '\n', '<stdin>', 'single')
                     exec(code, _globals, _locals)
@@ -976,7 +976,8 @@
                                     frmnr -= 1
                                 _globals = cf.f_globals
                                 _locals = \
-                                    self.currentThread.getCurrentFrameLocals()
+                                    self.currentThread.getFrameLocals(
+                                        self.framenr)
                         # reset sys.stdout to our redirector (unconditionally)
                         if "sys" in _globals:
                             __stdout = _globals["sys"].stdout

eric ide

mercurial