[Python-mode] Problems with pdb and ntemacs 21.3.1

Antonio Carrillo antonio.a.carrillo at gmail.com
Wed Jan 5 13:55:08 CET 2005


Hello.

I''m beginning with python and I'm using python-mode with emacs under
windows 2000. I've found a problem with pdb and a possible workaround:

When I start pdb with M-x pdb RET (I'm using the command 'python -u -m
pdb prog.py'), I can't see the python output in the gud buffer. The
pdb is working, just because if I write, for example, the command 'q',
pdb quits and ends the gud session. After digging under python-mode.el
and pdb.py, I've found that if pdb prints a line that begins with the
symbol '>' (default to show the current source position in pdb), the
gud buffer won't show pdb output anymore. I've worked around this
problem by changing pdb.py to show the current source position with a
'=>' symbol (class Pdb, method 'print_stack_entry'), and changing the
pdbtrack regexp accordingly.

Anyone has this problem too? Does exists some other solution for the problem?

Happy new year,

-- 
--
  Antonio Carrillo
  antonio.a.carrillo at gmail.com


More information about the Python-mode mailing list