vscode-cpptools/gdb/linux 远程调试的限制

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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值