pdb with emacs

Benjamin Rutt rutt.4+news at osu.edu
Wed Dec 1 10:11:56 EST 2004


"Yuri Shtil" <yshtil at synopsys.com> writes:

> I am trying to learn python and use the gud/pdb from emacs. The
> functionality that I am used to under gud/gdb and gud/perldb is missing, or
> I don't know how to make it work.
> Specifically: when I start pdb on a script file, the source does not show in
> an another window as it does with perldb and gdb. 

The source appears for me if I do C-c C-s immediately after startup.

> If I bring it up in an another window, the ^X SPC set a break, but
> the subsequent gud-next commands do not move the execution cursor in
> the source file window.

I can in general set breakpoints using C-x SPC in the source buffer
after the source appears, which will be hit after I resume
execution.  So I guess I don't observe your problems.  I am using a
custom "pdb" executable script though, maybe this helps:

#!/bin/sh
exec python $HOME/opt/python-2.3/lib/python2.3/pdb.py "$@"
-- 
Benjamin Rutt



More information about the Python-list mailing list