Fixed a subtle bug in the debugger client causing it to exit, if the first line is an import statement.

Thu, 12 Jan 2017 19:21:16 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 12 Jan 2017 19:21:16 +0100
changeset 5417
3458d1c8c5fc
parent 5416
16366120b523
child 5419
6f7a196d25da

Fixed a subtle bug in the debugger client causing it to exit, if the first line is an import statement.

DebugClients/Python/DebugBase.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugBase.py	Wed Jan 11 19:28:04 2017 +0100
+++ b/DebugClients/Python/DebugBase.py	Thu Jan 12 19:21:16 2017 +0100
@@ -312,7 +312,7 @@
             return self.trace_dispatch
         
         if event == 'call':
-            if self.botframe is None and frame.f_lineno > 1:
+            if self.botframe is None and frame.f_lineno >= 1:
                 self.botframe = frame
                 frame.f_trace = self.trace_dispatch
                 

eric ide

mercurial