gh-102980: Redirect output of pdb's `interact` command, add tests and improve docs (#111194)

4 files changed