additionalSOLibSearchPath does not work for remote debugging
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- cpp, typescript, vscode
- Lĩnh vực
- devtools, operating-systems
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện kịch bản gỡ lỗi SSH từ xa được mô tả trong launch.json trên Windows-to-Linux, so sánh additionalSOLibSearchPath với workaround LD_LIBRARY_PATH được ghi lại trong tài liệu. Hoàn tất khi executable từ xa tải được shared library của nó và việc gỡ lỗi thành công khi chỉ cấu hình additionalSOLibSearchPath.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug type: Debugger
Description
additionalSOLibSearchPath is not respected in debuging session using remote debugger from windows to linux using ssh.
According to maintainer in vscode-remote-release the issue is in debugger, not in the remote extension, see https://github.com/microsoft/vscode-remote-release/issues/5748
Work around
is to use "environment": [{ "name": "LD_LIBRARY_PATH", "value": "/path_to_libImportantLib/" },
Details
- VSCode Version:
Version: 1.61.0 (user setup)
Commit: ee8c7def80afc00dd6e593ef12f37756d8f504ea
Date: 2021-10-07T18:13:09.652Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19042 - Local OS Version:
OS: Windows_NT x64 10.0.19042 - Remote OS Version:
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 7.7.1908 (Core)
Release: 7.7.1908
Codename: Core
Linux 3.10.0-1160.41.1.el7.x86_64 #1 SMP Tue Aug 31 14:52:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux - Remote Extension/Connection Type:
SSH - Logs:
To Reproduce
- Compile an executable (exe_to_debug) on remote linux which depends on dynamic libraries in some path, eg
/path_to_libImportantLib/where libraries are found eg.libImportantLib.so - Debug executable on remote linux with dynamic libraries but without setting
additionalSOLibSearchPath
--> gdb fails as expected, output in gdb terminal
exe_to_debug: error while loading shared libraries: libImportantLib.so: cannot open shared object file: No such file or directory - In
Launch.jsonset
"additionalSOLibSearchPath": "/path_to_libImportantLib/"
Expected: Successful debugging
Current Result: Same error as (2)
`exe_to_debug: error while loading shared libraries: libImportantLib.so: cannot open shared object file: No such file or directory
Workaround:
Debugging works if I add following to Launch.json:
"environment": [
{
"name": "LD_LIBRARY_PATH",
"value": "/path_to_libImportantLib/"
},
- 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
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.
Issue khác của microsoft/vscode-cpptools
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
microsoft/vscode-cpptools#14787 ·
-
[Bug] cpptools fails to start on Ubuntu ARM64 due to missing execute permissions on shared libraries Đang mởbug fixed Language Service regression
microsoft/vscode-cpptools#14779 · 1 người được giao ·
-
Language Service more info needed
microsoft/vscode-cpptools#14778 · 1 bình luận · 1 người được giao ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 64/100
microsoft/vscode-cpptools#14769 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
microsoft/vscode-cpptools#14768 · 1 bình luận ·
Tất cả issue của microsoft/vscode-cpptools
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
0xMiden/bridge-portal#132 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
area:tools bug good first issue help wanted priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
newrelic-experimental/preflight#793 · 1 bình luận ·