No stdout from remote target when debugging over a "target remote" pipe

Đang mở
#4,977 5 bình luận 0 reaction 1 người được giao Xem trên GitHub

@pieandcakes đang làm issue này rồi.

Từ ngày 18/2/2020.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

debugger

Type: Debugger
gdb

  • OS and Version: ubuntu 18.04 LTS
  • VS Code Version: 1.41.1
  • C/C++ Extension Version: 0.26.3

I don't know if it's the same as:
https://github.com/Microsoft/vscode-cpptools/issues/827

But as the issue was 2.5 years old I open a new one.

I'm unable to see gdbserver's output. The output is sent back to VSCode, so it's a parsing error.

I'm running my application through a "target remote" pipe in "customLaunchSetupCommands", as the docker container has no connectivity and I don't own the container. The relevant parts of my configuration:

"customLaunchSetupCommands": [
      {
        "description": "Pipe launch gdbserver",
        "text": "target remote | docker exec -i <container> gdbserver - ${workspaceFolder}/<app>",
        "ignoreFailures": false
      },
      {
        "description": "Some apps include relative dirs",
        "text": "cd ${workspaceFolder}",
        "ignoreFailures": false
      },
      {
        "description": "Stop at main",
        "text": "b main",
        "ignoreFailures": false
      }
    ],

I have logging enabled:

"logging": {
    "trace": true,
     "traceResponse": true,
     "engineLogging": true
},

I see in the logs that gdbserver is generating the output, it's just that it's not correctly parsed.e.g:

--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (23145) ->&\" 4 FAILED TESTS\\n\"\n"},"seq":803}
1: (23145) ->&" 4 FAILED TESTS\n"
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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/vscode-cpptools

Tất cả issue của microsoft/vscode-cpptools

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.