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

gh-124703: Change back to raising bdb.BdbQuit when exiting pdb in 'inline' mode in a REPL session by ADThomas-astro · Pull Request #130395 · python/cpython · GitHub

/ cpython Public

gh-124703: Change back to raising bdb.BdbQuit when exiting pdb in 'inline' mode in a REPL session - #130395

Merged
gaogaotiantian merged 14 commits into
python:mainfrom
ADThomas-astro:gh124703_fix
Feb 25, 2025
Merged

gh-124703: Change back to raising bdb.BdbQuit when exiting pdb in 'inline' mode in a REPL session#130395
gaogaotiantian merged 14 commits into
python:mainfrom
ADThomas-astro:gh124703_fix

Conversation

ADThomas-astro commented Feb 21, 2025
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

This change should mean it's again possible to call breakpoint() in a REPL session and return to the REPL session with q/quit/exit/EOF.

The test has a slight workaround/hack because I couldn't figure out how to call breakpoint() and simulate using pdb interactively within a simulated REPL session in a subprocess. After set_trace() was called, pdb would receive an EOF and exit before it could receive further commands.

If there's interest, I could also add the code from PR129768 to shorten the BdbQuit traceback by one frame.

bedevere-app Bot commented Feb 21, 2025

Copy link
Copy Markdown

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

Comment thread Lib/pdb.py Outdated
Comment thread Lib/test/test_pdb.py Outdated
Comment thread Lib/test/test_pdb.py Outdated
Comment thread Lib/test/test_pdb.py Outdated
Comment thread Lib/test/test_pdb.py Outdated
Comment thread Lib/test/test_pdb.py
Comment thread Lib/test/test_pdb.py Outdated
gaogaotiantian merged commit ccb4ad9 into python:main Feb 25, 2025

Copy link
Copy Markdown
Member

Thank you for the PR!

ADThomas-astro deleted the gh124703_fix branch February 25, 2025 04:48

Copy link
Copy Markdown
Contributor Author

Thanks for the merge! And thanks for being super responsive and all your hard work on pdb!

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL