DebugClients/Python/DebugClientBase.py

branch
6_1_x
changeset 4644
99699903c454
parent 4643
705ee8ad484f
child 4835
371c03e08f7b
equal deleted inserted replaced
4643:705ee8ad484f 4644:99699903c454
771 try: 771 try:
772 value = eval( 772 value = eval(
773 arg, self.currentThread.getCurrentFrame().f_globals, 773 arg, self.currentThread.getCurrentFrame().f_globals,
774 self.currentThread.getFrameLocals(self.framenr)) 774 self.currentThread.getFrameLocals(self.framenr))
775 self.currentThread.storeFrameLocals(self.framenr) 775 self.currentThread.storeFrameLocals(self.framenr)
776 except:
776 # Report the exception and the traceback 777 # Report the exception and the traceback
777 try: 778 try:
778 type, value, tb = sys.exc_info() 779 type, value, tb = sys.exc_info()
779 sys.last_type = type 780 sys.last_type = type
780 sys.last_value = value 781 sys.last_value = value
804 _locals = self.currentThread.getFrameLocals(self.framenr) 805 _locals = self.currentThread.getFrameLocals(self.framenr)
805 try: 806 try:
806 code = compile(arg + '\n', '<stdin>', 'single') 807 code = compile(arg + '\n', '<stdin>', 'single')
807 exec code in _globals, _locals 808 exec code in _globals, _locals
808 self.currentThread.storeFrameLocals(self.framenr) 809 self.currentThread.storeFrameLocals(self.framenr)
810 except:
809 # Report the exception and the traceback 811 # Report the exception and the traceback
810 try: 812 try:
811 type, value, tb = sys.exc_info() 813 type, value, tb = sys.exc_info()
812 sys.last_type = type 814 sys.last_type = type
813 sys.last_value = value 815 sys.last_value = value

eric ide

mercurial