pdb doesn't work in Emacs after upgrading to Feisty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
emacs21 (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
Binary package hint: emacs21-common
here is a comp.lang.python thread I started with the exact same text I'm reporting here for this bug. There's some good discussion from people who really know python on there:
http://
I've been using pdb under emacs on an Ubuntu box to debug python programs. I just upgraded from Ubuntu Edgy to Feisty and this combo has stopped working. Python is at 2.5.1 now, and emacs is at 21.41.1.
It used to be I could just "M-x pdb RET pdb <script-name> RET" and be presented with a prompt where I could debug my script, as well as an
arrow in another source code buffer indicating where I am in the source code.
Now however, when I do "M-x pdb RET pdb ~/grabbers/
Current directory is /home/levander/
No prompt or anything follows it, just that one line. It doesn't pop up an arrow in the other buffer either. None of the regular commands
like 'n', 's', or 'l' do anything here. So, I did a 'Ctrl-C' and got:
> /home/levander/
-> """
(Pdb) > /home/levander/
-> import getopt
(Pdb) Traceback (most recent call last):
File "/usr/bin/pdb", line 1213, in main
pdb.
File "/usr/bin/pdb", line 1138, in _runscript
self.
File "bdb.py", line 366, in run
exec cmd in globals, locals
File "<string>", line 1, in <module>
File "/home/
import getopt
File "/home/
import getopt
File "bdb.py", line 48, in trace_dispatch
return self.dispatch_
File "bdb.py", line 66, in dispatch_line
self.
File "/usr/bin/pdb", line 144, in user_line
self.
File "/usr/bin/pdb", line 187, in interaction
self.cmdloop()
File "cmd.py", line 130, in cmdloop
line = raw_input(
KeyboardInterrupt
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
> /home/levander/
-> pass
(Pdb)
It's wierd because at the bottom of that call stack, it does look like it's wating for input, but no input works... And, after I hit Ctrl-C I do get a prompt as you see at the bottom of that listing just above. Now I type "quit" and get:
Post mortem debugger finished. The /home/levander/
grabber.py will be restarted
Changed in emacs21: | |
importance: | Undecided → Medium |
status: | Unconfirmed → Confirmed |
Just wanted to add that this bug really shocks me. Aren't there a lot of Canonical developers using python? Do they just not use emacs or pdb to debug their code?
That Usenet thread I pointed to has stuff about ipython.el that you can download from other places on the internet not working also.