Grand debugging of python in Emacs

David Jeschke david.jeschke at pobox.com
Thu Apr 20 18:51:25 CEST 2000


When I try to run the python debugger, pdb, through the grand unified
debugger interface in Emacs I do not see any output from the debugger in the
shell window until the debugger has exited.

I'm running Emacs 20.6 with python 1.5.2 on NT4 (SP6).  I'm not using a
UNIX-type shell.  I have a short python program which is a series of three
print statements.  I launch the debugger using M-x pdb and all I see is the
gud shell window with a line showing the current directory.  If I hit C-c
C-s several times to step through the program nothing appears in the shell
window until I have pressed it a half a dozen times.  Then all at once I get
the output from the debugger showing up in the shell window:

Current directory is c:/progra~1/python/lib/
> <string>(0)?()
(Pdb) > <string>(1)?()
(Pdb) > e:\temp\test.py(0)?()
(Pdb) > e:\temp\test.py(2)?()
-> print "hello, world!"
(Pdb) hello, world!
> e:\temp\test.py(3)?()
-> print "yes, sir!"
(Pdb) yes, sir!
> e:\temp\test.py(4)?()
-> print "goodbye."
(Pdb) goodbye.
--Return--
> e:\temp\test.py(4)?()->None
-> print "goodbye."
(Pdb) --Return--
> <string>(1)?()->None
(Pdb)
Debugger finished

Has anyone else run into this problem before and figured out a solution?
Thanks in advance for any assistance.

David Jeschke






More information about the Python-list mailing list