Skip to content

Conversation

ADThomas-astro
Copy link
Contributor

@ADThomas-astro ADThomas-astro commented Feb 21, 2025

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
Copy link

bedevere-app bot commented Feb 21, 2025

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.

@gaogaotiantian gaogaotiantian merged commit ccb4ad9 into python:main Feb 25, 2025
43 checks passed
@gaogaotiantian
Copy link
Member

Thank you for the PR!

@ADThomas-astro ADThomas-astro deleted the gh124703_fix branch February 25, 2025 04:48
@ADThomas-astro
Copy link
Contributor Author

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

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