问题: pycharm debug async 函数时, 在断点处不暂停
需要打开新特性(python.debug.asyncio.repl)
双击 Shift (Search Everywhere)
-
搜索
Registry
, 点击
image.png 在弹出窗口找到
python.debug.asyncio.repl
打钩(可以 cmd+F 搜索), 关闭窗口
image.png
- 重启 IDE
如要复原配置, 在上面第3步, 对钩去掉
参考: https://youtrack.jetbrains.com/issue/PY-57667/Asyncio-support-for-the-debugger-EXPERIMENTAL-FEATURE