Await an async function in Python debugger

后端 未结 1 1268
广开言路
广开言路 2021-02-19 07:30

Is it possible to await arbitrary calls to an async function when inside a Python debugger?

Say I have the following code in some main.p

1条回答
  •  北恋
    北恋 (楼主)
    2021-02-19 07:48

    Seems like there's starting to be more support for this feature since Python 3.8. In particular, look at this issue bpo-37028

    If you're still on Python 3.7, maybe aiomonitor could have something that supports this feature to a certain extent.

    0 讨论(0)
提交回复
热议问题