vscode配置remote ssh

张开发
2026/4/20 5:58:02 15 分钟阅读

分享文章

vscode配置remote ssh
下载老版本的vscodeMay 2024 (version 1.90)1. 安装插件vscode配置remote ssh_Hello_wshuo的博客-CSDN博客_remote ssh vscode设置界面 右键最左边tab栏:主体:vscode插件:RemoteSSHLinux主体:vscode-server插件:C/C++,CMake,CMakeTools,CodeLLDB,RainbowBrackets,vscode-proto3,SVN,LuaHelper(tencent),clangd虚拟化主体: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 } ] } ] }#配置cmake cd build cmake ../ make服务器上启动gdbserver--remote-debug0.0.0.0:9101./GateSrvgdbserver --remote-debug 0.0.0.0:9101 --attach 682420json文件一般要改的就下面这些

更多文章