]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-79871: IDLE - Fix and test debugger module (GH-11451) (#112256)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 19 Nov 2023 04:35:59 +0000 (05:35 +0100)
committerGitHub <noreply@github.com>
Sun, 19 Nov 2023 04:35:59 +0000 (04:35 +0000)
commita62dcacc6e7fabc82c50dd942a838cd69d2846bd
tree8a34d658b6222527a992c75a74cd798366f22c84
parent919be35eae2413dfb59b9517879f69fedec68b7e
[3.12] gh-79871: IDLE - Fix and test debugger module (GH-11451) (#112256)

gh-79871: IDLE - Fix and test debugger module (GH-11451)

Add docstrings to the debugger module. Fix two bugs: initialize Idb.botframe (should be in Bdb); In Idb.in_rpc_code, check whether prev_frame is None before trying to use it. Make other code changes.

Expand test_debugger coverage from 19% to 66%.
---------

(cherry picked from commit adedcfa06b553242d8033f6d9bebbcb3bc0dbb4d)

Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Lib/idlelib/debugger.py
Lib/idlelib/idle_test/test_debugger.py
Lib/idlelib/pyshell.py
Lib/idlelib/stackviewer.py
Misc/NEWS.d/next/IDLE/2019-01-07-06-18-25.bpo-35668.JimxP5.rst [new file with mode: 0644]