使用VSCode远程调试
在配置文件.vscode/launch.json
中,修改如下内容:
注意 “remoteRoot” 为项目地址。
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach (Remote Debug)",
"type": "python",
"request": "attach",
"localRoot": "${workspaceRoot}",
"remoteRoot": "/home/mmdetection3d",
"port": 8888,
"secret": "xxxxx",
"host": "10.60.45.66"
},