简体   繁体   中英

How to debug asyncio coroutines in python in general

I'm working on my project with asyncio coroutines and find it hard to get an error and debug the code, is there a general source/method that someone can point me to how to debug coroutines?

asyncio.run(async_fn(), debug=True)

More details: https://docs.python.org/3/library/asyncio-dev.html#asyncio-debug-mode

Also it's already in Pycharm 2022.3 https://youtrack.jetbrains.com/issue/PY-22961

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM