Config help: setting environment variables with :env
(general suggestions welcome)
#97
-
Hi, firstly, thank you very much for developing an alternative to Here is my (use-package dape
:custom
(dape-buffer-window-arrangement 'right)
(dape-debug t)
:config
(add-to-list 'dape-configs
`(super-program
ensure dape-ensure-command
command "lldb-vscode"
command-cwd dape-cwd-fn
:type "lldb-vscode"
:cwd (lambda () (s-concat (funcall dape-cwd-fn) "bin"))
:program (lambda () (s-concat (funcall dape-cwd-fn) "bin/super-program-binary"))
:args ["blah", "bleh"]
:env (
;; needed at runtime to prevent dynamic linking error to a .so used by super-program
:LD_LIBRARY_PATH "/usr/local/some_proprietary_install/lib64"
;; used by super-program itself
:BLAH_ENV "100"
)
))
) The project layout:
It took a lot of trial and error to find the correct combo of I can't get the environment vars defined with I'd appreciate any help with the environment var issue or any general suggestions! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[]) {
char *blah_env = getenv("BLAH_ENV");
printf("%s\n", blah_env);
return 0;
}
/* Local Variables: */
/* dape-command: (lldb-vscode compile "gcc -g env.c" :program "a.out" :env ["BLAH_ENV=100"]) */
/* End: */ Had to go digging, https://llvm.googlesource.com/lldb/+/master/tools/lldb-vscode/ for lldb-vscode the |
Beta Was this translation helpful? Give feedback.
Had to go digging, https://llvm.googlesource.com/lldb/+/master/tools/lldb-vscode/ for lldb-vscode the
:env
property has it's own unique signature.