[3.11] gh-79871: IDLE - Fix and test debugger module (GH-11451) (#112257)

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 adedcfa06b)

Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
Miss Islington (bot) 2023-11-19 05:34:54 +01:00 committed by GitHub
parent 93fbcd6443
commit e19d75df76
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 397 additions and 74 deletions

View file

@ -1,3 +1,5 @@
# Rename to stackbrowser or possibly consolidate with browser.
import linecache
import os