This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: pdb: unexpected path confuses Emacs
Type: Stage:
Components: Library (Lib) Versions: Python 2.2
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: gvanrossum, jhmark
Priority: normal Keywords:

Created on 2001-11-01 00:41 by jhmark, last changed 2022-04-10 16:04 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
bdbpatch.txt gvanrossum, 2001-11-01 03:53 Patch for bdb.py
Messages (3)
msg7306 - (view) Author: Jonathan Mark (jhmark) Date: 2001-11-01 00:41
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)?()
msg7307 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-11-01 03:53
Logged In: YES 
user_id=6380

Here's a patch to bdb.py that might fix this.
msg7308 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2001-11-29 02:50
Logged In: YES 
user_id=6380

Fixed in CVS now.
History
Date User Action Args
2022-04-10 16:04:35adminsetgithub: 35442
2001-11-01 00:41:58jhmarkcreate