--- 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