microsoft / microsoft/vscode-cpptools

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

Ouverte
#3,333 2 commentaires 0 réactions 1 personne assignée Voir sur GitHub

@WardenGnaw y travaille déjà.

Depuis le 21/3/2019.

bug debugger
Langage dominant
TypeScript
Étoiles
6.2k
Forks
1.7k
Merge moyen
14 h 46 min
PR mergées (30 j)
61

Description

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

Guide de contribution

Ouvrir le guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.