新建一个launch.json

vscode python debug调试

{

// 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}"}

}

]

}

相关文章:

  • 2022-12-23
  • 2021-12-04
  • 2022-12-23
  • 2022-03-07
  • 2022-12-23
  • 2021-11-04
  • 2019-06-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-03
  • 2021-10-06
  • 2021-11-04
相关资源
相似解决方案