Message378687
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. |
|
Date |
User |
Action |
Args |
2020-10-15 15:24:27 | hack.augusto | set | recipients:
+ hack.augusto, asvetlov, yselivanov |
2020-10-15 15:24:27 | hack.augusto | set | messageid: <1602775467.01.0.625412494748.issue42045@roundup.psfhosted.org> |
2020-10-15 15:24:26 | hack.augusto | link | issue42045 messages |
2020-10-15 15:24:26 | hack.augusto | create | |
|