DebugClients/Python/DebugBase.py

changeset 5717
b7dd23b4e728
parent 5700
3bcd20e99b52
child 5757
9a4e28d0b3c4
--- 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