Open lilianmoraru opened 7 years ago
set sysroot
on rustc --print sysroot
didn't work either...
My mistake. These are for debugging...
I did:
set env LD_LIBRARY_PATH [the same paths from the script]
and it worked(in the terminal but not in CLion)
I temporarily put set env LD_LIBRARY_PATH [the same paths from the script]
inside .gdbinit
and it now works from CLion
.
I could not find where I can configure the debugger from CLion...
I have not checked this, but my theory is that Cargo passes custom LD_LIBRARY_PATH
when you do cargo run
which we can't get hold of yet. This should be fixed by https://github.com/rust-lang/cargo/pull/3866 which will cause Cargo to print LD_LIBRARY_PATH
.
I tried to run the debugger(tried with the one bundled 7.11.1 and with gdb 7.12.1 - since it is Rust friendly since 7.12) on RLS and it fails because it cannot find Rust std libraries:
I want to note that running
gdb rls
gives the same result(tried after I started opening this issue). So, it's just a setup issue. I tried settingset solib-search-path
and it still didn't work for some reason. I used this little script to obtain the command: