From a2ae1c288e81fbe098d979660fdda5cce17ef60f Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Mon, 6 Jul 2020 11:28:24 +0100 Subject: [PATCH] Documentation for codelldb/rust --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 92592bd..724e16b 100644 --- a/README.md +++ b/README.md @@ -277,6 +277,7 @@ categorised as follows: | Java | Supported | `--force-enable-java ` | vscode-java-debug | Compatible LSP plugin (see [later](#java)) | | C# (dotnet core) | Experimental | `--force-enable-csharp` | netcoredbg | DotNet core | | C# (mono) | Experimental | `--force-enable-csharp` | vscode-mono-debug | Mono | +| Rust (CodeLLDB) | Experimental | `--force-enable-rust` | CodeLLDB | Python 3 | | Python.legacy | Legacy | `--force-enable-python.legacy` | vscode-python | Node 10, Python 2.7 or Python 3 | For other languages, you'll need some other way to install the gadget. @@ -1222,6 +1223,32 @@ For the launch arguments, see the See [this issue](https://github.com/puremourning/vimspector/issues/3) for more background. +## Rust + +Rust is supported with any gdb/lldb-based debugger. So it works fine with +`vscode-cpptools` and `lldb-vscode` above. However, support for rust is best in +[`CodeLLDB`](https://github.com/vadimcn/vscode-lldb#features). + +* `./install_gadget.py --force-enable-rust` +* Example: `support/test/rust/vimspector_test` + +```json +{ + "configurations": { + "launch": { + "adapter": "CodeLLDB", + "configuration": { + "request": "launch", + "program": "${workspaceRoot}/target/debug/vimspector_test" + } + } + } +} +``` + +* Docs: https://github.com/vadimcn/vscode-lldb/blob/master/MANUAL.md + + ## Other servers * Java - vscode-javac. This works, but is not as functional as Java Debug