-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FR: Debugger setup in vscode #370
Comments
Hi Uebel, I don't think there is any. I tend to use lldb directly after a build in |
Ah, ok. Sorry for the delay and thank you @damienmg in particular for answering being so active 😄 |
No worries, I want to keep this bug open as I think it represent a reasonable feature request (though probably a low priority one). |
@damienmg Can you give an example of a command you run? |
That's all in the command line like: $ bazel build -c dbg //my:target
$ lddb bazel-bin/my/target |
Oh, is there no way to pass |
There should be the --run_under flag of `bazel run` but quite frankly I
have never used it for debugging rust binary so I would not be able to help
here. Also this is more important for debugging test where a huge setup is
done outside the binary.
|
Hi! I just ran into this today, and had to work around a few things to get lldb debugging under vscode (on linux) to work. I thought I might share this in case someone needs to get this working ASAP (or wants to turn this into a patch...?) In debug builds, Happily, rustc exposes a compiler option, I tried to get rid of the "workspace" root entirely, but it didn't work; I think perhaps vscode is expecting absolute paths to source files when doing sourcemaps, and so you need to map something to your workspace directory. |
Hi all, small update. Rust rules now pass (simplifying here a bit)
You can put the
Last but not least, there was a regression in rust-lang/rust@2ba7ca2 that was fixed in rust-lang/rust#82102. The fix is only in nightlies currently and will be released in 1.52. Anybody would be willing to get this rough text and make a nice documentation out of it? |
Oh, I totally missed #370 (comment) and just came to link #812 (comment) 😅 It'd be awesome if someone could add this to the rust_analyzer docs. |
Is there a suggested method to setup a debugger against a rust target in Visual Studio Code?
The text was updated successfully, but these errors were encountered: