microsoft / microsoft/vscode-cpptools

${command:pickRemoteProcess} doesn't seem to work when using Plink on Windows

未关闭
#3,333 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@WardenGnaw 已经在做这个了。

开始于 2019年3月21日。

bug debugger
主要语言
TypeScript
星标
6.2k
派生
1.7k
平均合并
14 小时 46 分钟
30 天内合并 PR
61

描述

Type: Debugger

OS and Version: Debian 8
VS Code Version: 1.32.3
C/C++ Extension Version: 0.22.0

When i use Pipe Attach then assert the below message:

Command failed: "plink.exe" "-pw" "pwd" "user@192.168.1.1" 'sh -c "uname && if [ $(uname) = \"Linux\" ] ; then ps axww -o pid=,comm=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,args= ; elif [ $(uname) = \"Darwin\" ] ; then ps axww -o pid=,comm=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,args= -c; fi"'
fi:command not found

the launch.json is

{
"name": "(gdb) Pipe Attach",
"type": "cppdbg",
"request": "attach",
"program" : "",
"processId": "${command:pickRemoteProcess}",
"pipeTransport": {
	"pipeCwd": "${workspaceRoot}",
	"pipeProgram": "${workspaceFolder}/plink.exe",
	"pipeArgs": [
		"-pw",
		"pwd",
		"user@192.168.1.1",
	],
	"debuggerPath": "stdbuf -i0 -o0 -e0 /usr/bin/gdb",
  },
"MIMode": "gdb",
"setupCommands": [
	{
		"description": "Enable pretty-printing for gdb",
		"text": "-enable-pretty-printing",
		"ignoreFailures": true
	}
],
}  

btw, when i change the code in cmd, it will be fine

plink.exe "-pw" "pwd" "user@192.168.1.1" "sh -c 'uname && if [ $(uname) = \"Linux\" ] ; then ps axww -o pid=,comm=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,args= ; elif [ $(uname) = \"Darwin\" ] ; then ps axww -o pid=,comm=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,args= -c; fi'"

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。