Restore normal stop functionality (F10).

Thu, 03 Nov 2016 22:30:07 +0100

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Thu, 03 Nov 2016 22:30:07 +0100
changeset 5287
971f24c89e6b
parent 5286
d14191a9ca44
child 5288
ff831e3e383e

Restore normal stop functionality (F10).

DebugClients/Python/AsyncFile.py file | annotate | diff | comparison | revisions
DebugClients/Python/DebugBase.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/AsyncFile.py	Wed Nov 02 19:39:52 2016 +0100
+++ b/DebugClients/Python/AsyncFile.py	Thu Nov 03 22:30:07 2016 +0100
@@ -103,7 +103,11 @@
         Public method to write all pending entries.
         """
         while self.wpending:
-            buf = self.wpending.pop(0)
+            try:
+                buf = self.wpending.pop(0)
+            except IndexError:
+                break
+            
             try:
                 try:
                     buf = buf.encode('utf-8', 'backslashreplace')
--- a/DebugClients/Python/DebugBase.py	Wed Nov 02 19:39:52 2016 +0100
+++ b/DebugClients/Python/DebugBase.py	Thu Nov 03 22:30:07 2016 +0100
@@ -533,10 +533,10 @@
         Disables the trace functions and resets all frame pointer.
         """
         sys.setprofile(None)
-        sys.settrace(None)
         self.stopframe = None
         self.returnframe = None
-        self.quitting = True
+        for debugThread in self._dbgClient.threads.values():
+            debugThread.quitting = True
     
     def fix_frame_filename(self, frame):
         """

eric ide

mercurial