microsoft / microsoft/vscode-cpptools
${command:pickRemoteProcess} doesn't seem to work when using Plink on Windows
Đang mở
@WardenGnaw đang làm issue này rồi.
Từ ngày 21/3/2019.
bug
debugger
- Ngôn ngữ chính
- TypeScript
- Star
- 6.2k
- Fork
- 1.7k
- Merge trung bình
- 14 giờ 46 phút
- Pull request đã merge (30 ngày)
- 61
Mô tả
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'"
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Đánh giá
Issue này chưa được đánh giá.