but lldb-server is in $PATH so lldb should use that
$ which lldb-server
/nix/store/vpqd2k73ya6fxkwmy6bznc0xbiah2nq6-lldb-16.0.6/bin/lldb-server
workaround in python
# fix: error: unable to locate lldb-server
# lldb is looking in the wrong $PATH = support exe dir
# https://github.com/NixOS/nixpkgs/pull/119945
# -> set LLDB_DEBUGSERVER_PATH to absolute path of lldb-server
# get absolute path of lldb-server
# TODO shorter?
lldb_server_exe = next(filter(lambda p: os.path.exists(p), map(lambda p: p + "/lldb-server", os.get_exec_path())))
os.environ["LLDB_DEBUGSERVER_PATH"] = lldb_server_exe
obviously, lldb-server is not in the python /bin
but lldb-server is in $PATH so lldb should use that
workaround in python
see also https://github.com/NixOS/nixpkgs/pull/119945 https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-10/+bug/1894159