mirror of
https://github.com/python/cpython.git
synced 2025-10-03 21:55:41 +00:00
gh-124703: Add documentation and whatsnew entry for pdb exit change (#129818)
This commit is contained in:
parent
718ab66299
commit
d3b60fff58
2 changed files with 16 additions and 0 deletions
|
@ -697,6 +697,17 @@ can be overridden by the local file.
|
||||||
.. pdbcommand:: q(uit)
|
.. pdbcommand:: q(uit)
|
||||||
|
|
||||||
Quit from the debugger. The program being executed is aborted.
|
Quit from the debugger. The program being executed is aborted.
|
||||||
|
An end-of-file input is equivalent to :pdbcmd:`quit`.
|
||||||
|
|
||||||
|
A confirmation prompt will be shown if the debugger is invoked in
|
||||||
|
``'inline'`` mode. Either ``y``, ``Y``, ``<Enter>`` or ``EOF``
|
||||||
|
will confirm the quit.
|
||||||
|
|
||||||
|
.. versionchanged:: 3.14
|
||||||
|
A confirmation prompt will be shown if the debugger is invoked in
|
||||||
|
``'inline'`` mode. After the confirmation, the debugger will call
|
||||||
|
:func:`sys.exit` immediately, instead of raising :exc:`bdb.BdbQuit`
|
||||||
|
in the next trace event.
|
||||||
|
|
||||||
.. pdbcommand:: debug code
|
.. pdbcommand:: debug code
|
||||||
|
|
||||||
|
|
|
@ -641,6 +641,11 @@ pdb
|
||||||
command when :mod:`pdb` is in ``inline`` mode.
|
command when :mod:`pdb` is in ``inline`` mode.
|
||||||
(Contributed by Tian Gao in :gh:`123757`.)
|
(Contributed by Tian Gao in :gh:`123757`.)
|
||||||
|
|
||||||
|
* A confirmation prompt will be shown when the user tries to quit :mod:`pdb`
|
||||||
|
in ``inline`` mode. ``y``, ``Y``, ``<Enter>`` or ``EOF`` will confirm
|
||||||
|
the quit and call :func:`sys.exit`, instead of raising :exc:`bdb.BdbQuit`.
|
||||||
|
(Contributed by Tian Gao in :gh:`124704`.)
|
||||||
|
|
||||||
|
|
||||||
pickle
|
pickle
|
||||||
------
|
------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue