Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to evaluate coroutine in pycharms interactive debugger

When interrupting execution of python async code with PyCharm's interactive debugger (breakpoints) we can inspect the environment with PyCharm's debugging tools like "evaluate expression" or "Execute Line in Python Console".

How can we evaluate coroutines within these debugging tools?

like image 262
Konstantin Avatar asked Jan 06 '20 10:01

Konstantin


2 Answers

You can try to use PyCharm Evaluate async code plugin, link to plugin https://plugins.jetbrains.com/plugin/14476-evaluate-async-code

like image 66
Yurii Karabas Avatar answered Oct 18 '22 08:10

Yurii Karabas


No way at the moment, please vote for https://youtrack.jetbrains.com/issue/PY-22961

like image 23
user2235698 Avatar answered Oct 18 '22 10:10

user2235698