DebugClients/Python3/DebugClientBase.py

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

eric ide

mercurial