]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-79871: IDLE - Fix and test debugger module (#11451)
authorAnthony Shaw <anthony.p.shaw@gmail.com>
Sun, 19 Nov 2023 04:20:38 +0000 (15:20 +1100)
committerGitHub <noreply@github.com>
Sun, 19 Nov 2023 04:20:38 +0000 (23:20 -0500)
commitadedcfa06b553242d8033f6d9bebbcb3bc0dbb4d
tree323d5c4a3d354d949826d2f46e0287248bd8ab18
parent18c692946953e586db432fd06c856531a2b05127
gh-79871: IDLE - Fix and test debugger module (#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%.
---------
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]