[Python-bugs-list] [ python-Bugs-477023 ] pdb: unexpected path confuses Emacs
noreply@sourceforge.net
noreply@sourceforge.net
Wed, 31 Oct 2001 19:53:43 -0800
Bugs item #477023, was opened at 2001-10-31 16:41
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=477023&group_id=5470
Category: Python Library
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Jonathan Mark (jhmark)
Assigned to: Nobody/Anonymous (nobody)
Summary: pdb: unexpected path confuses Emacs
Initial Comment:
With python 2.2b1,
Start the debugger like this on any script. Notice the
stack frame display in which <string> has a path name
prepended to it.
This confuses the emacs Python debugging mode
(python-mode.el) causing it not to recognize the line
as a stack frame, and thus not to display the (Pdb)
prompt for the user.
$ ./bin/python ./lib/python2.2/pdb.py ~/tmp/foo.py
> /hda3/sys/Python-2.2b1-local/<string>(0)?()
(Pdb)
in the same scenario, python 1.5 does not confuse emacs
because it displays the line like this:
> <string>(0)?()
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-10-31 19:53
Message:
Logged In: YES
user_id=6380
Here's a patch to bdb.py that might fix this.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=477023&group_id=5470