Skip to content

gh-121450: Make inline breakpoints use the most recent pdb instance #121451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 11, 2024
Merged
Prev Previous commit
Add what's new entry
  • Loading branch information
gaogaotiantian committed Jul 10, 2024
commit 73b0e9fa2eee1e191cd7e5d61043860e78d223a3
10 changes: 10 additions & 0 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,16 @@ pathlib
another.
(Contributed by Barney Gale in :gh:`73991`.)

pdb
---

* Hard-coded breakpoints (:func:`breakpoint` and :func:`pdb.set_trace()`) now
reuse the most recent :class:`~pdb.Pdb` instance that calls
:meth:`~pdb.Pdb.set_trace()`, instead of creating a new one each time.
As a result, all the instance specific data like :pdbcmd:`display` and
:pdbcmd:`commands` are preserved across hard-coded breakpoints.
(Contributed by Tian Gao in :gh:`121450`.)

symtable
--------

Expand Down
Loading