Awaiting coroutines inside the debugger (PDB)

darthdeus at gmail.com darthdeus at gmail.com
Sun Nov 24 06:15:11 EST 2019


Hi everyone,

this question is sort of in response to this issue
https://github.com/gotcha/ipdb/issues/174. I've noticed that there was
recently added support for an asyncio repl (run via `python -m
asyncio`), which allows the use of `await` directly on coroutine objects
in the REPL.

But this does not seem to work when in PDB (and consequently in iPDB)
when running `import pdb; pdb.set_trace()`.

Is there any workaround to get `await` working in PDB, or any simple way
to synchronously wait while in the debugger?


More information about the Python-list mailing list