PDB stops on wrong line inside pattern matching block #99474
Labels
3.11
only security fixes
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
triaged
The issue has been accepted as valid by a triager.
type-bug
An unexpected behavior, bug, or error
Bug report
If you try to debug code example with pdb and step forward 9 times then pdb stops on 12 line (but it shouldn't go to if statement).
It happens because function
trace_dispatch(self, frame, event, arg)
gets line event.Code example (
main.py
):Steps:
Environment
Python versions: 3.10, 3.11
OS: MacOS Monterey
CPU: Intel Core i9 2.3 GHz
The text was updated successfully, but these errors were encountered: