打开新项目左边的“运行和调试”
 点击蓝色字体“创建 launch.json 文件”
 选择上方“python”
 选择“Python 文件 调试当前正在运行的Python文件”
 配置launch.json文件内容:
{// 使用 IntelliSense 了解相关属性// 悬停以查看现有属性的描述。// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387"version": "0.2.0","configurations": [                {"name": "Python: Current File","type": "python","request": "launch","program": "${file}","console": "integratedTerminal","justMyCode": true,"env": {"PYDEVD_WARN_SLOW_RESOLVE_TIMEOUT": "2"},"cwd": "${fileDirname}","args": ["./configs/xxx.yaml","--a", "A","--b", "B"]         }]
}
"justMyCode": true debug时只进入项目自带文件,不进入安装的包文件
 "env": {"PYDEVD_WARN_SLOW_RESOLVE_TIMEOUT": "2"} 多长时间显示 pydevd warnings
 "cwd": "${fileDirname}" 控制代码的初始路径为debug文件所在路径
 "args": ["xxx", "xxx"] debug时传入的参数