 <p>Take a look at <a href="http://morepypy.blogspot.com/2008/06/pdb-and-rlcompleterng.html" rel="nofollow noreferrer">pdb++</a> - it is a drop-in replacement for pdb that fills all your requirements and adds some other nice features such as tab completion and new commands such as watch and sticky.</p>