microsoft / microsoft/vscode-cpptools

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

Offen
#3,333 2 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

@WardenGnaw arbeitet bereits daran.

Seit 21.3.2019.

bug debugger
Vorherrschende Sprache
TypeScript
Sterne
6.2k
Forks
1.7k
Ø Merge
14 Std. 46 Min.
Gemergte PRs (30 T.)
61

Beschreibung

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'"

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.