microsoft / microsoft/vscode-cpptools

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

オープン
#3,333 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

@WardenGnaw がすでに取り組んでいます。

2019年3月21日 から。

bug debugger
主要言語
TypeScript
スター
6.2k
フォーク
1.7k
平均マージ
14時間 46分
マージ済み PR(30日)
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. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。