https://github.com/microsoft/vscode-cpptools
1. pipeTransport / miDebuggerServerAddress 冲突 不可同时使用 https://github.com/Microsoft/vscode-cpptools/issues/528
2. pipeTransport可以attach ( "request"/"attach" ) 远程process/Linux 但必须指定processId和debuggerPath设定gdb, 即调试在target上,不能用gdbserver
//"processId": "${command:pickProcess}",
"processId": "${command:pickRemoteProcess}",
"MIMode": "gdb",
"pipeTransport": {
"pipeCwd": "/usr/bin",
"pipeProgram": "/usr/bin/ssh",
"pipeArgs": ["-i", "~/.ssh/id_rsa", "root@192.168.1.1"],
"debuggerPath": "/home/lake/usr/bin/aarch64-yourtoolchain-linux-gnu-gdb"
},
3. miDebuggerServerAddress用远程gdbserver模式, 如用attach模式, 只能支持在gdbserver启动时候设定--attach pid 不能在 host端gdb client设定attach
Refer to
https://github.com/microsoft/vscode-cpptools/issues/4166
4. GDB extended-remote /connecting to a gdbserver started with the "--multi" argument 尚未支持 // https://github.com/microsoft/vscode-cpptools/issues/2118
https://github.com/microsoft/vscode-cpptools/issues