调试器适用于本地存储库(托管在 Mac 上)。
我尝试重新安装Python扩展,删除远程服务器上的~/.vscode-server,在Mac上重新安装VSCode,但似乎没有任何帮助。
这是早些时候的工作(一周前尝试过),但不确定发生了什么变化。 从终端(连接到远程主机,由 SSH FS 呈现),我可以运行
python test.py
并且有效Python 的 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": true
}
]
}
版本详情Commit: b06ae3b2d2dbfe28bca3134cc6be65935cdfea6a
Date: 2022-07-12T08:21:51.333Z (1 day ago)
Electron: 18.3.5
Chromium: 100.0.4896.160
Node.js: 16.13.2
V8: 10.0.139.17-electron.0
OS: Darwin x64 21.5.0
Id: Kelvin.vscode-sshfs
Description: File system, terminal and task provider using SSH
Version: 1.25.0
Publisher: Kelvin Schoofs
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=Kelvin.vscode-sshfs```
[1]: https://i.stack.imgur.com/elruD.png