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

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

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Sun, 05 Mar 2017 16:09:50 +0100
changeset 5580
0f5d29acc8ea
parent 5579
2afb925a84e6
child 5581
f8abf5f741ef
child 5583
f8b6d3b90808

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

DebugClients/Python/ThreadExtension.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/ThreadExtension.py	Fri Mar 03 18:57:12 2017 +0100
+++ b/DebugClients/Python/ThreadExtension.py	Sun Mar 05 16:09:50 2017 +0100
@@ -305,6 +305,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. """
@@ -357,6 +359,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