additionalSOLibSearchPath does not work for remote debugging
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 30/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- cpp, typescript, vscode
- Bereich
- devtools, operating-systems
Rechercherichtung
Beginne damit, das in launch.json beschriebene Szenario für das Remote-SSH-Debugging unter Windows-to-Linux nachzustellen, und vergleiche additionalSOLibSearchPath mit dem dokumentierten LD_LIBRARY_PATH-Workaround. Als abgeschlossen gilt die Aufgabe, wenn die Remote-Executable ihre Shared Library lädt und das Debugging erfolgreich ist, sobald nur additionalSOLibSearchPath konfiguriert ist.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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/"
},
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 14 Std. 46 Min.
- Gemergte PRs (30 T.)
- 61
Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus microsoft/vscode-cpptools
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
microsoft/vscode-cpptools#14787 ·
-
[Bug] cpptools fails to start on Ubuntu ARM64 due to missing execute permissions on shared libraries Offenbug fixed Language Service regression
microsoft/vscode-cpptools#14779 · 1 zugewiesene Person ·
-
Language Service more info needed
microsoft/vscode-cpptools#14778 · 1 Kommentar · 1 zugewiesene Person ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 64/100
microsoft/vscode-cpptools#14769 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
microsoft/vscode-cpptools#14768 · 1 Kommentar ·
Alle Issues in microsoft/vscode-cpptools
Ähnliche Issues
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 76/100
-
code-quality refactoring
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
langchain-ai/deepagents#6450 ·
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
vercel/react-tweet#225 ·