[issue42693] "if 0:" lines are traced; they didn't use to be

Serhiy Storchaka report at bugs.python.org
Wed Dec 23 01:02:26 EST 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

If the NOP is outside of the loop, then what is the reason of adding it? You cannot set a breakpoint on "while True:" which stops on every iteration.

The goal "tracing every line of code" is incompatible with code optimization. It would be better to add a special option to produce slower bytecode for tracing if you want to trace every line.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42693>
_______________________________________


More information about the Python-bugs-list mailing list