In python 3.14, they added a new function to pdb:
awaitable pdb.set_trace_async(**, header=None, commands=None)
Now, you can call await pdb.set_trace_async() and you can await values with it.
await pdb.set_trace_async()