偵測資料夾下的.py檔 - jenhaoyang/backend_blog GitHub Wiki

{
    "version": "0.2.0",
    "configurations": [
        {
           "name": "Python: Current File",
           "type": "python",
           "request": "launch",
           "program": "${file}",
           "console": "integratedTerminal",
           "env": { "PYTHONPATH": "${workspaceRoot}"}
        }
    ]
}

參考:
https://stackoverflow.com/a/63271966