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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 12 Jan 2017 19:21:16 +0100
branch
maintenance
changeset 5418
9a20eb429092
parent 5410
e976da63316a
child 5431
24a4167cd14d

Fixed a subtle bug in the debugger client causing it to exit, if the first line is an import statement.
(grafted from 3458d1c8c5fceaf6e86d5b42f5a7cef2073e31ce)

DebugClients/Python/DebugBase.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugBase.py	Tue Jan 10 15:35:08 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