Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Support for setting environment variables during launch/debug #30

Open
AlexAUT opened this issue Mar 25, 2022 · 3 comments
Open

Support for setting environment variables during launch/debug #30

AlexAUT opened this issue Mar 25, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@AlexAUT
Copy link

AlexAUT commented Mar 25, 2022

Describe the problem or limitation you are having
We use environment variables for specific debug switches which we cannot set yet. A workaround is to start the neovim session with them already set.

Describe the solution you'd like
Similar interface to args would probably ok because the dap support the env key.

Describe alternatives you've considered
Starting neovim with the env set which isn't flexible enough

Additional context
I may be able to provide a pull request but I need to get comfortable with lua / nvim scripting first.

@AlexAUT AlexAUT added the enhancement New feature or request label Mar 25, 2022
@shrkamat
Copy link

You could achieve this with presets #32.

@AlexAUT
Copy link
Author

AlexAUT commented May 4, 2022

I think they do only provide env-variables for the build process, or would this extension pass them to the debugger as well?

I would only need them for launching the application. With different presents it would probably rebuild the application which is not necessary for my usecase.

I can provide a pull request if it is ok for you to have a similar interface as the args/set_target_args for launching an application.

@Shatur
Copy link
Owner

Shatur commented May 4, 2022

I can provide a pull request if it is ok for you to have a similar interface as the args/set_target_args for launching an application.

Feel free to send a PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants