Open chgnrdv opened 2 months ago
I think we should make quit
quit and restart
restart. It's inconsistent for the post-mortem debugger to have a different behavior. We noticed the user that cont
and step
will restart the program, which is fine and has been the case for a really long time, but quit
should not just quit the post mortem debugger and enter the normal debugger, they should explicitly ask a restart.
So we need to do something about the message - I'll work on that. This is a bug fix so it doesn't have to be merged before beta freeze.
Bug report
Bug description:
In 3.12 and earlier, if user enters
quit
/exit
commands or does Ctrl-D,pdb
restarts script with corresponding message and exits only on repeatedquit
/exit
/Ctrl-D:Since fa18b0afe47615dbda15407a102b84e40cadf6a5 only message is printed, but Python exits completely:
@gaogaotiantian, what's your opinion? Should we restore the old behavior or remove confusing message about "restart"? As I can see,
pdb
docs doesn't state explicitly whatquit
/exit
commands should do in post-mortem debugger.CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Linked PRs