gh-111744: Make breakpoint() enter the debugger immediately#118579
gh-111744: Make breakpoint() enter the debugger immediately#118579brandtbucher merged 6 commits intopython:mainfrom
breakpoint() enter the debugger immediately#118579Conversation
Haha. Away from my computer now, but I’ll take a look at this today. |
Pun is actually not intended. Took me a second to realize what's funny :) |
|
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 So this is great to see! |
|
Test changes look good. Thanks for applying a variety of fixes there. |
brandtbucher
left a comment
There was a problem hiding this comment.
Thanks for this! I'll leave it open for a bit in case others have thoughts.
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()andpdb.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.
breakpointdoes not enter pdb until the "next event" happens #111744📚 Documentation preview 📚: https://cpython-previews--118579.org.readthedocs.build/