How can I set extra SO search path except LD_LIBRARY_PATH for debuggee by codelldb? #1087
Unanswered
zhiqiangzz
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
❯ uname -a Linux s4124-0035 5.15.0-84-generic #93-Ubuntu SMP Tue Sep 5 17:16:10 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Thanks in advance!!
How can I get similar function in codelldb just like bellow in VsCode default C/C++ debug tool.

I don't want to set env LD_LIBRARY_PATH or write this in cmake because I want to debug different so library dynamically.
I set like this for lldb debug but not take effects
At the same time, unfortunately, even though I added
LD_LIBRARY_PATH=~/_out/Linux_amd64_debug:~/llvm/build/lib
to my ~/.zshrc and restarted my vscode, the dynamic link libraries under the LD_LIBRARY_PATH path still cannot be found by the dynamic linker.If I just run the program by command in terminal it can run correctly.And I can get same error above when I unset LD_LIBRARY_PATH then run the program in terminal.
Beta Was this translation helpful? Give feedback.
All reactions