[Twisted-Python] Begginner discovering Emacs as a python debugger

Itamar Shtull-Trauring itamar at itamarst.org
Mon Dec 8 16:06:05 EST 2003

On Mon, 2003-12-08 at 15:01, marjan cinober wrote:
> Hello!
> I have just tested debugging in emacs with twistd.
> M-x pdb
> Run pdb (like this): twistd -b -y finger11.py
> COOL :))
> It would be great to have similar easy entry interface to pdb through emacs 
> for any python script not just twistd -b.
> Anybody knows how to achieve that (or something like that)?

Write a little script called "pdb", add it to your PATH, and then you
can M-x pdb with "pdb yourscript.py".

$ cat bin/pdb
exec /usr/bin/python2.2 /usr/lib/python2.2/pdb.py $1 $2 $3 $4 $5 $6

Itamar Shtull-Trauring    http://itamarst.org
Looking for a job: http://itamarst.org/resume.html

More information about the Twisted-Python mailing list