[New-bugs-announce] [issue42045] Add support to async code to pdb

Augusto Hack report at bugs.python.org
Thu Oct 15 11:24:27 EDT 2020


New submission from Augusto Hack <me at hak.cx>:

Currently it seems that `pdb` does not support executing `async` functions. This makes debugging `async` code a bit harder if one needs to call an `async` function from the REPL.

Here is an example:

```python
import asyncio

async def f() -> int:
    return 1

async def main():
    breakpoint()

asyncio.run(main())
```

The goal would be to call `f()`. In a real world application this could be additional HTTP requests, database queries, etc.

----------
components: asyncio
messages: 378687
nosy: asvetlov, hack.augusto, yselivanov
priority: normal
severity: normal
status: open
title: Add support to async code to pdb
type: enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42045>
_______________________________________


More information about the New-bugs-announce mailing list