I am running into an error with using VSCode's debugger for my Rust projects. It worked before the OS update, but now I am running into an issue. My Mac is a 2019 Macbook Pro with a x86 chip.
To illustrate what is going wrong I created a simple Rust project with just hello world.
It compiles just file, but when I hit the Debug
above main
I get this in by Debug Console
Console is in 'commands' mode, prefix expressions with '?'.
Launching: /Users/my_account/Desktop/test/target/debug/test
Launched process 5903
Process exited with code -1.
Also, I've noticed when I first open VSCode, rust analyzer is this odd color and it states Failed to spawn one or more proc-macro servers
, but when I hit reload workspace it's returns to the original blue color of my of editor.
Error
OK
When I look into the Output tab in VSCode, it states nothing for the Rust Analyzer, so I am assuming that this means everything is OK on the Rust Analyzer side of things?
What I have tried:
rustup
Any help is greatly appreciated! : )
Deleting ~/.vscode/extensions/vadimcn.vscode-lldb-1.10.0/lldb/bin/debugserver
worked for me.
The comments on github indicate that this forces the codelldb plugin to fallback to using the system debugserver.
references: