microsoft / microsoft/vscode-cpptools
remote attach doesn't
Chưa có ai nhận issue này.
- 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: Bug
this used to work.
windows host, wsl2 guest, trying to attach to remote machine.
{
"name": "attach",
"type": "cppdbg",
"request": "attach",
"program": "/home/user/program",
"processId": "${command:pickRemoteProcess}",
"pipeTransport": {
"pipeProgram": "/usr/bin/ssh",
"pipeArgs": [
"-o LogLevel=error",
"user@remote-host"
]
},
"logging": {
"engineLogging": true
}
}
the debug panel just shows the spinner. debug console shows NO output. stopping/starting has no effect. neither does reloading window.
ps -ax on the wsl2 guest shows a bunch of these:
23875 pts/0 S+ 0:00 /usr/bin/ssh user@remote-host sh -c "uname && if [ $(uname) = \"Linux\" ] ; then ps axww -o pid=,comm=aaaaaaaaaaaaaaaaaaaa
23877 pts/0 S+ 0:00 /usr/bin/ssh user@remote-host sh -c "uname && if [ $(uname) = \"Linux\" ] ; then ps axww -o pid=,comm=aaaaaaaaaaaaaaaaaaaa
...
htop on the remote machine (remote-host) shows those processes running:
8995 root 20 0 153M 5176 3892 S 0.0 0.1 0:00.00 │ ├─ sshd: user [priv]
8996 sshd 20 0 114M 2880 1752 S 0.0 0.1 0:00.00 │ │ └─ sshd: user [net]
8835 root 20 0 153M 5172 3892 S 0.0 0.1 0:00.01 │ ├─ sshd: user [priv]
8836 sshd 20 0 114M 2880 1752 S 0.0 0.1 0:00.00 │ │ └─ sshd: user [net]
running the /usr/bin/ssh ... command manually on the wsl2 guest shows the expected remote process listing.
Extension version: 1.12.4
VS Code version: Code 1.72.2 (d045a5eda657f4d7b676dedbfa7aab8207f8a075, 2022-10-12T22:15:18.074Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: No
Remote OS version: Linux x64 5.10.102.1-microsoft-standard-WSL2
Connection to 'wsl+centos7' could not be established
Remote OS version: Linux x64 5.10.102.1-microsoft-standard-WSL2
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz (6 x 2904) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: enabled_on opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_renderer: enabled_on video_decode: enabled video_encode: unavailable_off vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 47.66GB (21.02GB free) |
| Process Argv | |
| Screen Reader | no |
| VM | 31% |
| Item | Value |
|---|---|
| Remote | WSL: CentOS7 |
| OS | Linux x64 5.10.102.1-microsoft-standard-WSL2 |
| CPUs | Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz (6 x 2904) |
| Memory (System) | 37.34GB (33.15GB free) |
| VM | 0% |
Connection to 'wsl+centos7' could not be established
| Item | Value |
|---|---|
| Remote | WSL: CentOS7 |
| OS | Linux x64 5.10.102.1-microsoft-standard-WSL2 |
| CPUs | Intel(R) Core(TM) i5-9400 CPU @ 2.90GHz (6 x 2904) |
| Memory (System) | 37.34GB (33.15GB free) |
| VM | 0% |
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.
Hướng nghiên cứu
Không có tệp nguồn hoặc bài kiểm thử nào được nêu tên. Hãy bắt đầu bằng cách tái hiện cấu hình attach WSL2-to-remote với cppdbg và pipeTransport, sau đó lần theo luồng chọn tiến trình từ xa và attach; hoàn tất khi spinner kết thúc và trình gỡ lỗi attach thành công hoặc báo cáo một lỗi rõ ràng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- cpp, linux, typescript, vscode
- Lĩnh vực
- devtools, operating-systems
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100