在VSCode中对server进行debug时出现了以下报错:
RuntimeError: cannot release un-acquired lock
It seems that the gevent monkey-patching is being used.
Please set an environment variable with:
GEVENT_SUPPORT=True
to enable gevent support in the debugger.
It seems that the gevent monkey-patching is being used.
Please set an environment variable with:
GEVENT_SUPPORT=True
to enable gevent support in the debugger.
解决方案:
在本项目下的vscode文件夹中找到:launch.json
在configurations中添加:"gevent": true
参考资料:
https://groups.google.com/g/py4web/c/Lv6nL3zSHn0/m/Cjy2xRvnAQAJ