til
pdb interact command
see
The pdb interact command