Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for environment variables #680

Open
mdenson opened this issue Dec 13, 2024 · 1 comment
Open

Add support for environment variables #680

mdenson opened this issue Dec 13, 2024 · 1 comment
Labels
Feature: Configuration Related to the --dry-run "make" invocation and settings Feature: launch Debug/Run
Milestone

Comments

@mdenson
Copy link

mdenson commented Dec 13, 2024

I am working on a dynamically linked library project and it would be nice to be able to set LD_LIBRARY_PATH to a local directory prior to running or debugging the test programs. By the way, I have limited understanding of vs code plugins, so perhaps I am just missing something. In my launch.json I have something like this:
"environment": [ { "name": "LD_LIBRARY_PATH", "value": "../lib" } ],
which works to set the library path prior to executing. When I try to add the same to the settings.json makefile.launchConfigurations it does not set the environment var and the launch fails.

@gcampbell-msft
Copy link
Collaborator

@mdenson You are correct, scanning our source code and definition for an environment object in the makefile.launchConfigurations, we don't currently support an environment modification, I'll mark this as a feature request.

Thanks! Please upvote the issue as we often use upvotes to prioritize issues.

@gcampbell-msft gcampbell-msft added Feature: Configuration Related to the --dry-run "make" invocation and settings Feature: launch Debug/Run and removed triage labels Dec 16, 2024
@gcampbell-msft gcampbell-msft added this to the Backlog milestone Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Configuration Related to the --dry-run "make" invocation and settings Feature: launch Debug/Run
Projects
None yet
Development

No branches or pull requests

2 participants