DebugClients/Python/DebugBase.py

branch
debugger fine grinding
changeset 5538
d6de2206af1e
parent 5537
706ac32a4538
child 5539
05b365ba9f55
--- a/DebugClients/Python/DebugBase.py	Sat Feb 18 13:52:07 2017 +0100
+++ b/DebugClients/Python/DebugBase.py	Sat Feb 18 13:58:48 2017 +0100
@@ -423,7 +423,11 @@
             target(*args, **kwargs)
         except SystemExit:
             pass
+        except Exception:
+            excinfo = sys.exc_info()
+            self.user_exception(excinfo, True)
         finally:
+            sys.settrace(None)
             sys.setprofile(None)
     
     def run(self, cmd, globals=None, locals=None):
@@ -457,6 +461,9 @@
             excinfo = sys.exc_info()
             exitcode, message = self.__extractSystemExitMessage(excinfo)
             self._dbgClient.progTerminated(exitcode, message)
+        except Exception:
+            excinfo = sys.exc_info()
+            self.user_exception(excinfo, True)
         finally:
             self.quitting = True
             sys.settrace(None)

eric ide

mercurial