【发布时间】:2019-04-30 08:58:35
【问题描述】:
我想用 vscode 进行远程 C/C++ gdb 调试。我在进行配置时使用“本机调试”扩展。这是我的 launch.json 配置
{
"type": "gdb",
"request": "launch",
"name": "Launch Program (SSH)",
"target": "./hello",
"cwd": "/home/root/test1/",
"ssh": {
"host": "192.168.15.130",
"cwd": "/home/root/test1/",
"password": "",
"user": "root"
}
我在目标上运行
gdbserver localhost:2000 ./hello
不幸的是,我无法连接远程设备进行调试。有没有对此有配置经验的人?
【问题讨论】:
标签: debugging visual-studio-code