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

gh-111744: Make `breakpoint()` enter the debugger immediately by gaogaotiantian · Pull Request #118579 · python/cpython · GitHub

/ cpython Public

gh-111744: Make breakpoint() enter the debugger immediately - #118579

Merged
brandtbucher merged 6 commits into
python:mainfrom
gaogaotiantian:pdb-breakpoint
May 5, 2024
Merged

gh-111744: Make breakpoint() enter the debugger immediately#118579
brandtbucher merged 6 commits into
python:mainfrom
gaogaotiantian:pdb-breakpoint

Conversation

gaogaotiantian commented May 4, 2024
edited by github-actions Bot
Loading

Copy link
Copy Markdown
Member

We had some discussion in #111744 and in discord channel. We know this is a breaking change but people agree it's much more intuitive.

This basically changes the breakpoint() and pdb.set_trace() behavior so it stops immediately after the call, rather than before the next line.

Unfortunately a lot of the test cases need to be adapted.


📚 Documentation preview 📚: https://cpython-previews--118579.org.readthedocs.build/

Copy link
Copy Markdown
Member

this is a breaking change

Haha.

Away from my computer now, but I’ll take a look at this today.

brandtbucher self-assigned this May 4, 2024

Copy link
Copy Markdown
Member Author

this is a breaking change

Haha.

Pun is actually not intended. Took me a second to realize what's funny :)

ambv commented May 4, 2024

Copy link
Copy Markdown
Contributor

This is a breaking change but I can't tell you how many times I wanted to look at the state of a function, I put breakpoint() at the last line... and it stopped after leaving the function altogether 😵‍💫

So this is great to see!

Comment thread Lib/bdb.py
Comment thread Doc/library/pdb.rst Outdated

Copy link
Copy Markdown
Member

Test changes look good. Thanks for applying a variety of fixes there.

brandtbucher left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks for this! I'll leave it open for a bit in case others have thoughts.

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.

3 participants


Back | FazBrowse Home | New Git URL