You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/rust/README.md
+21-2Lines changed: 21 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,9 +87,11 @@ Currently, this feature works on recent versions of Debian- and Ubuntu-based dis
87
87
88
88
#### rust-analyzer & CodeLLDB
89
89
90
-
This feature installs the excellent extensions [`rust-lang.rust-analyzer`](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) (language server) and [`vadimcn.vscode-lldb`](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb) (native LLDB debugger). [Rust-analyzer](https://github.com/rust-lang/rust-analyzer) is, by default, configured to use [CodeLLDB](https://github.com/vadimcn/codelldb) as its debugger of choice.
90
+
This feature installs the excellent extensions [`rust-lang.rust-analyzer`](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) (language server) and [`vadimcn.vscode-lldb`](https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb) (native LLDB debugger). [rust-analyzer](https://github.com/rust-lang/rust-analyzer) is, by default, configured to use [CodeLLDB](https://github.com/vadimcn/codelldb) as its debugger of choice.
91
91
92
-
Tp enable pretty symbols in the debugger, you want to add the setting
92
+
##### Proper Symbols
93
+
94
+
To enable proper symbols in the debugger, add the setting
93
95
94
96
```jsonc
95
97
"lldb.launch.preRunCommands": [
@@ -99,6 +101,23 @@ Tp enable pretty symbols in the debugger, you want to add the setting
99
101
100
102
to the `devcontainer.json`'s IDE-specific settings (example shown is for VS Code). The symbol definitions are copied from [`cmrschwarz/rust-prettifier-for-lldb`](https://github.com/cmrschwarz/rust-prettifier-for-lldb).
101
103
104
+
##### Using a Subdirectory
105
+
106
+
If your code lives in a separate directory that is not the repository root, set
107
+
108
+
```jsonc
109
+
"lldb.launch.cwd":"${containerWorkspaceFolder}/<SUBDIRECTORY OF YOUR CODE>",
110
+
"lldb.launch.relativePathBase":"${containerWorkspaceFolder}/<SUBDIRECTORY OF YOUR CODE>"
111
+
```
112
+
113
+
You should also create a symbolic link for a potential `rust-toolchain.toml` file via
114
+
115
+
```bash
116
+
ln -s "<SUBDIRECTORY OF YOUR CODE>/rust-toolchain.toml"'rust-toolchain.toml'
117
+
```
118
+
119
+
This is currently required for the [`rust-lang.rust-analyzer`](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer) extension to work properly.
0 commit comments