[Python-bugs-list] [ python-Bugs-543674 ] pdb: contradictory msg for "exit"/Ctrl-D

noreply@sourceforge.net noreply@sourceforge.net
Sun, 14 Apr 2002 04:33:26 -0700


Bugs item #543674, was opened at 2002-04-14 13:33
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=543674&group_id=5470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Gregor Hoffleit (flight)
Assigned to: Nobody/Anonymous (nobody)
Summary: pdb: contradictory msg for "exit"/Ctrl-D

Initial Comment:
pdb gives contradictory messages when I try to leave it:

"exit" gives me the message 'Use Ctrl-D (i.e. EOF) to
exit.'; when I then press "Ctrl-D", nothing happens.
Only "quit" will exit the debugger:

  freefly:1> python2.2 /usr/lib/python2.2/pdb.py
/tmp/xxx.py 
  > <string>(0)?()
  (Pdb) exit
  'Use Ctrl-D (i.e. EOF) to exit.'
  (Pdb) [Ctrl-D](Pdb) quit
  freefly:2> 

The cause for this trouble is that exit() is defined in
site.py to issue that warning, but then, "Ctrl-D" is
not accordingly handled in pdb.py. So either pdb.py
should be fixed to handle "Ctrl-D" like "quit", or
"exit" should be changed in pdb.py to either quit the
program or just do nothing.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=543674&group_id=5470