How do I use the debugger with Rust? #4048
Replies: 8 comments 23 replies
-
|
Beta Was this translation helpful? Give feedback.
-
I checked, and you can build codelldb yourself: https://github.com/vadimcn/vscode-lldb/blob/fe1fb617b273d846b76ba75087e7f35232c9bd9e/BUILDING.md |
Beta Was this translation helpful? Give feedback.
-
Go to your terminal and type You need to select the built binary for your application in the |
Beta Was this translation helpful? Give feedback.
-
@rkshthrmsh No, I wasn't able. They are still reported as memory addresses (I haven't updated Helix in a while, though). I'll update it one of these days and see. What about you? You're also seeing memory addresses? |
Beta Was this translation helpful? Give feedback.
-
@weiying-chen and @David-Else, I tried it today and it seems like values for variables on the stack are shown but only addresses for the heap? |
Beta Was this translation helpful? Give feedback.
-
For those here that are trying to debug with helix on macOS:
That'll get you a usable lldb-vscode in your homebrew path without messing up the system llvm / lldb |
Beta Was this translation helpful? Give feedback.
-
@rkshthrmsh Thanks! |
Beta Was this translation helpful? Give feedback.
-
It looks like lldb-vscode (included in |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have
codelldb
installed using the WIKI instructions https://github.com/helix-editor/helix/wiki/Debugger-Configurations#install-debuggers and want to debug a Rust program. I am quite new to debugging, I have done it in VS Code. How do I do it in Helix? I have added:launch debug binary
asks for binary, I enter the target and get:I am on RHEL 9 Linux using Kitty, same problem with Debian. Is it still hard coded to use Tmux?
What about the default
lldb-vscode
? Why are there instructions to installcodelldb
but notlldb-vscode
? How do I get alldb-vscode
binary, do I need to install VS Code?The WIKI is incredibly confusing. Could someone please explain how to debug Rust? THANKS!
Beta Was this translation helpful? Give feedback.
All reactions