下载老版本的vscode
1. 安装插件
vscode配置remote ssh_Hello_wshuo的博客-优快云博客_remote ssh vscode
设置界面 右键最左边tab栏:
主体: vscode
插件: Remote SSH
Linux主体: vscode-server
插件: C/C++, CMake, CMake Tools, CodeLLDB, Rainbow Brackets, vscode-proto3, SVN,LuaHelper(tencent)
虚拟化主体: multipass + linux发行版(比如ubuntu)
补充: multipass实例本地端口转发代理Proxy(自己写)
launch.json
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Server-Remote-9101",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/testHello_gdb",
"args": [],
"cwd": "${workspaceFolder}/build/",
"MIMode": "gdb",
"miDebuggerServerAddress": "192.168.157.133:9101",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "将反汇编风格设置为 Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
},
{
"type": "lldb",
"request": "attach",
"name": "Attach-Srv",
"pid": "${command:pickMyProcess}"
},
{
"name": "(gdb) 启动",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/testHello",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build/",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"setupCommands": [
{
"description": "为 gdb 启用整齐打印",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "将反汇编风格设置为 Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
}
]
}
]
}