Don't step into libraries after a QThread or threading.Thread has finished. maintenance

Sun, 05 Mar 2017 16:09:50 +0100

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Sun, 05 Mar 2017 16:09:50 +0100
branch
maintenance
changeset 5598
0e59df936fb6
parent 5592
1b635de76083
child 5600
63eb46a7c3e8

Don't step into libraries after a QThread or threading.Thread has finished.
(grafted from 0f5d29acc8eaa6b8629586aac56833cb02a59698)

DebugClients/Python/ThreadExtension.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/ThreadExtension.py	Sun Mar 05 16:17:28 2017 +0100
+++ b/DebugClients/Python/ThreadExtension.py	Sun Mar 05 16:09:50 2017 +0100
@@ -306,6 +306,8 @@
                 except Exception:
                     excinfo = sys.exc_info()
                     newThread.user_exception(excinfo, True)
+                finally:
+                    sys.settrace(None)
             
             class ThreadWrapper(module.Thread):
                 """ Wrapper class for threading.Thread. """
@@ -358,6 +360,8 @@
                 except Exception:
                     excinfo = sys.exc_info()
                     newThread.user_exception(excinfo, True)
+                finally:
+                    sys.settrace(None)
         
             class QThreadWrapper(module.QThread):
                 """ Wrapper class for *.QThread. """

eric ide

mercurial