Hi,
I'm using Spacemacs to work with Rust.
So far, I haven't been able to make the debugger work.
Could someone be so kind as to please point me to any missing thing here?
Things I have done so far:
- Added
rust
to mydotspacemacs-configuration-layers
(rust :variables
lsp-rust-analyzer-cargo-auto-reload t
rustic-format-on-save t)
- Made sure
rust-lldb
,lldb
,lldb-dap
, andlldb-mi
are in my path:
% which rust-lldb
/usr/bin/rust-lldb
% which lldb
/usr/bin/lldb
% which lldb-dap
/usr/lib/llvm-19/bin/lldb-dap
% which lldb-mi
/home/allentiak/opt/bin/lldb-mi
- Correctly Installed the relevant VS Code extensions:
% cd ~/.emacs.d/.extension/vscode
% tree -L 2
.
├── codelldb
│ ├── [Content_Types].xml
│ ├── extension
│ └── extension.vsixmanifest
├── firefox-devtools.vscode-firefox-debug
│ ├── [Content_Types].xml
│ ├── extension
│ └── extension.vsixmanifest
├── msjsdiag.debugger-for-chrome
│ ├── [Content_Types].xml
│ ├── extension
│ └── extension.vsixmanifest
├── ms-vscode.node-debug2
│ ├── [Content_Types].xml
│ ├── extension
│ └── extension.vsixmanifest
└── webfreak.debug
├── [Content_Types].xml
├── extension
└── extension.vsixmanifest
- Tried my setup on a (suppossedly working) sample repo:
Mentioned as a sample repo for the following article: