You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bdb.Bdb.set_trace: should set f_trace_lines = True #80675
3.10 (EOL)end of life3.11only security fixes3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
bdb.Bdb.set_trace should set "f_trace_lines = True" on frames explicitly.
Otherwise they might be skipped if something else has set it to False already, e.g. via a suggested change for coverage.py to set this for performance reasons (coveragepy/coveragepy#791).
Coverage.py now sets f_trace_lines=0 when it doesn't want to trace, and I've started getting bug reports that this breaks tests using pdb: coveragepy/coveragepy#1402. Can we move this forward?
3.10 (EOL)end of life3.11only security fixes3.9 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error
Activity
blueyed commentedon Mar 31, 2019
bdb.Bdb.set_trace should set "f_trace_lines = True" on frames explicitly.
Otherwise they might be skipped if something else has set it to False already, e.g. via a suggested change for coverage.py to set this for performance reasons (coveragepy/coveragepy#791).
[-]bdb: should set f_trace_lines = True[/-][+]bdb.Bdb.set_trace: should set f_trace_lines = True[/+]iritkatriel commentedon May 21, 2021
The patch needs a test.
nedbat commentedon Jun 13, 2022
Coverage.py now sets f_trace_lines=0 when it doesn't want to trace, and I've started getting bug reports that this breaks tests using pdb: coveragepy/coveragepy#1402. Can we move this forward?
iritkatriel commentedon Jun 13, 2022
@nedbat, I don't think @blueyed plans to finish this. Would you like to take over?
gh-80675: Set `f_trace_lines = True` on all frames upon `pdb.set_trac…
gaogaotiantian commentedon Feb 5, 2024
Fixed.
pythongh-80675: Set `f_trace_lines = True` on all frames upon `pdb.se…
pythongh-80675: Set `f_trace_lines = True` on all frames upon `pdb.se…