DebugBase: fixed an issue causing some breakpoints not being recognized, which was caused by incorrectly determining the line numbers of a frame.

Sun, 08 Mar 2020 12:59:38 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 08 Mar 2020 12:59:38 +0100
changeset 7442
ebcb3a228c3d
parent 7441
f115f4469795
child 7443
379b9349287f

DebugBase: fixed an issue causing some breakpoints not being recognized, which was caused by incorrectly determining the line numbers of a frame.

eric6/DebugClients/Python/DebugBase.py file | annotate | diff | comparison | revisions
--- a/eric6/DebugClients/Python/DebugBase.py	Sat Mar 07 17:22:14 2020 +0100
+++ b/eric6/DebugClients/Python/DebugBase.py	Sun Mar 08 12:59:38 2020 +0100
@@ -629,6 +629,8 @@
             # No need to handle special case if a lot of lines between
             # (e.g. closure), because the additional lines won't cause a bp
             for co_lno in co_lnotab:
+                if co_lno >= 0x80:
+                    lineNo -= 0x100
                 lineNo += co_lno
                 lineNumbers.append(lineNo)
             

eric ide

mercurial