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

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/