vscode python debug调试

新建一个launch.json

{

// 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: Current File",

"type": "python",

"request": "launch",

"program": "${file}",

"console": "integratedTerminal",

"justMyCode": false,

"env": {"PYTHONPATH":"${workspaceRoot}"}

}

]

}

猜你喜欢

转载自blog.csdn.net/ynshi57/article/details/107720019