--- a/DebugClients/Python/DebugClientBase.py Sun Jul 20 17:26:13 2014 +0200 +++ b/DebugClients/Python/DebugClientBase.py Thu Jul 24 22:34:05 2014 +0200 @@ -203,6 +203,7 @@ # The context to run the debugged program in. self.debugMod = imp.new_module('__main__') + self.debugMod.__dict__['__builtins__'] = __builtins__ # The list of complete lines to execute. self.buffer = '' @@ -1284,9 +1285,11 @@ frmnr -= 1 if f is None: - return - - if scope: + if scope: + dict = self.debugMod.__dict__ + else: + scope = -1 + elif scope: dict = f.f_globals else: dict = f.f_locals @@ -1327,9 +1330,11 @@ frmnr -= 1 if f is None: - return - - if scope: + if scope: + dict = self.debugMod.__dict__ + else: + scope = -1 + elif scope: dict = f.f_globals else: dict = f.f_locals