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: contradictory msg for "exit"/Ctrl-D
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: gvanrossum Nosy List: flight, gvanrossum
Priority: normal Keywords:

Created on 2002-04-14 11:33 by flight, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (2)
msg10326 - (view) Author: Gregor Hoffleit (flight) Date: 2002-04-14 11:33
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.
msg10327 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2002-04-15 00:49
Logged In: YES 
user_id=6380

The easiest solution was to add exit as an alias of quit,
and that's what I've done in CVS. There's still the problem
with ^D being ignored; I'd be happy to get a patch for that.
History
Date User Action Args
2022-04-10 16:05:13adminsetgithub: 36431
2002-04-14 11:33:26flightcreate