Răsfoiți Sursa

Configure lldb to support /proc/self/cwd paths (#4992)

On my machine, the LLVM debug information seems to use source file paths
relative to `/proc/self/cwd`, which is the current working directory of
whatever process refers to it. Consequently, VSCode can't find those
files, because it has a different current working directory. This change
enables VSCode to rewrite those paths to a usable form.
Geoff Romer 1 an în urmă
părinte
comite
9cb6b7190f
1 a modificat fișierele cu 4 adăugiri și 1 ștergeri
  1. 4 1
      .vscode/lldb_launch.json

+ 4 - 1
.vscode/lldb_launch.json

@@ -12,7 +12,10 @@
         "command script import external/+llvm_project+llvm-project/llvm/utils/lldbDataFormatters.py",
         "settings set target.source-map \".\" \"${workspaceFolder}\""
       ],
-      "env": { "TEST_TMPDIR": "/tmp" }
+      "env": { "TEST_TMPDIR": "/tmp" },
+      "sourceMap": {
+        "/proc/self/cwd/": "${workspaceFolder}"
+      }
     },
     {
       "type": "lldb-dap",