Skip to content

Config help: setting environment variables with :env (general suggestions welcome) #97

Answered by svaante
nickbanderson asked this question in Q&A
Discussion options

You must be logged in to vote
#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 :env property has it's own unique signature.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nickbanderson
Comment options

Answer selected by nickbanderson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants