I get confused about this, but afaik it's in python-mode. Just run pdb in an emacs shell buffer. More notes at http://zopewiki.org/DebuggingWithEmacs .