Avoid exception when stepping through greenlet's tasklets.

Mon, 24 Apr 2017 21:37:19 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Mon, 24 Apr 2017 21:37:19 +0200
changeset 5717
b7dd23b4e728
parent 5712
f0d08bdeacf4
child 5718
32cbb2610d01

Avoid exception when stepping through greenlet's tasklets.

DebugClients/Python/DebugBase.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugBase.py	Sun Apr 23 16:40:31 2017 +0200
+++ b/DebugClients/Python/DebugBase.py	Mon Apr 24 21:37:19 2017 +0200
@@ -312,7 +312,7 @@
         
         if event == 'line':
             if self.stop_here(frame) or self.break_here(frame):
-                if (self.stop_everywhere and
+                if (self.stop_everywhere and frame.f_back and
                         frame.f_back.f_code.co_name == "prepareJsonCommand"):
                     # Just stepped into print statement, so skip these frames
                     self._set_stopinfo(None, frame.f_back)

eric ide

mercurial