Replies: 3 comments 4 replies
-
BTW, I tried to understand the documentation, but it's written in such way that only developer of |
Beta Was this translation helpful? Give feedback.
-
it seem like i have the same issue. but "run" and "run and without debugging" from the run menu seems to just look for a executable described on the program field of launch.json without ever trying to compile/built it. if i make the program on launch.json point to the same executable location that is created by the the codelens run/debug options, it will launch the executable that is there. but else it will just say it can't find the executable. |
Beta Was this translation helpful? Give feedback.
-
That is exactly what it is supposed to do. CodeLLDB can be used with many compiled languages, so it is not feasible to build in the knowledge about how to invoke each compiler (of which there can be multiple for the same language, see e.g. C++).
The language extension that provides the code lens, is targeted at a particular language, it is much easier for them to know how to compile programs in that language. Especially since Rust has a standard build system. ...well, okay: as an exception to the above rule of thumb, CodeLLDB actually can invoke Cargo for you. But this sort of thing is uncommon among native debugging tools. |
Beta Was this translation helpful? Give feedback.
-
Hi guys. I would like to start using the debugger for my rust code. But apparently it is not working as intended.
I am on Linux Fedora and VSCodium.
I downloaded the extension v.1.7.0.
mkdir exam1
,cd exam1
,touch main.rs
,exam1
,Unable to find executable for <your program>
,<your program>
tomain.rs
,main.rs does not contain any 'host' platform architecture
,P.S. I am able to compile
rustc main.rs
and run the app./main
.The question is: can someone please explain me in a simple way what I am missing to run the debugger?
The Manual fails to provide some kind of GetStarted point so it is not useful to me.
Beta Was this translation helpful? Give feedback.
All reactions