VSCode 在 Python gevent 环境下进行调试
2021-07-22 本文已影响0人
承诺一时的华丽
- 在
launch.json
中添加运行环境变量参数"gevent": true
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: 当前文件",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"gevent": true // 新增参数
}
]
}