gh-121468: Support async breakpoint in pdb by gaogaotiantian · Pull Request #132576 · python/cpython
I finally figured out how to support await in pdb without too much hack - we can make the breakpoint itself an awaitable, and everything is simply integrated into the system!
This PR introduced a new function pdb.set_trace_async which the users should await, and with that function, the users can do their awaits in th debugger!
📚 Documentation preview 📚: https://cpython-previews--132576.org.readthedocs.build/