YuCCCCC

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

打开.vscode文件夹

点击launch.json

将这段代码添加到configurations集合里面去

{
"name": "Python",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "${config:python.pythonPath}",
"program": "${file}",
"cwd": "${workspaceFolder}",
"env": {},
"envFile": "${workspaceFolder}/.env",
"debugOptions": [
"RedirectOutput"
]
},
 
之后和vs一样  设置断点,F5调试

 

posted on 2018-05-18 14:06  YuCCCCC  阅读(650)  评论(0)    收藏  举报