FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-124703: Add documentation and whatsnew entry for pdb exit change by gaogaotiantian · Pull Request #129818 · python/cpython · GitHub

/ cpython Public
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (2) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
11 changes: 11 additions & 0 deletions Doc/library/pdb.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,17 @@ can be overridden by the local file.
.. pdbcommand:: q(uit)

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

Expand Down
5 changes: 5 additions & 0 deletions Doc/whatsnew/3.14.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,11 @@ pdb
command when :mod:`pdb` is in ``inline`` mode.
(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
------
Expand Down

Back | FazBrowse Home | New Git URL