解決辦法:
再launch.json中加如"justMyCode": false
{
// 使用 IntelliSense 了解相關屬性。
// 懸停以檢視現有屬性的描述。
// 欲了解更多資訊,請通路: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: 目前檔案",
"type": "python",
"request": "launch",
"program": "${file}",
"stopOnEntry": true,
"justMyCode": false,
"console": "integratedTerminal"
}
]
}