使用vscode 调试 Python
- 安装Vscode Python插件
- 使用Ctrl+Shift+D 快速添加调试文件
- 默认调试文件只需要修改program 如果需要制定Python 版本的话。可以使用python属性
{ // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "Python 调试程序: 当前文件", "type": "debugpy", "request": "launch", "program": "${workspaceFolder}/hello.py", "console": "integratedTerminal" } ] }
- 使用F5进行调试 F10-F12 控制流程
stay hungry stay foolish!

浙公网安备 33010602011771号