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

Debug test with specific set of environment variables #2370

Closed
nfx opened this issue Jul 25, 2022 · 2 comments
Closed

Debug test with specific set of environment variables #2370

nfx opened this issue Jul 25, 2022 · 2 comments
Labels
debug/config Issues for config discrepancies b/n settings.json, launch.json, launch with F5, run test, debug test Debug Issues related to the debugging functionality of the extension. FrozenDueToAge

Comments

@nfx
Copy link

nfx commented Jul 25, 2022

Is your feature request related to a problem? Please describe.
This extension gives a great code lens to debug a test, though it seems not to be possible to debug test with a different set of environment variables. .vscode/launch.json doesn't seem to be picked up. This approach is very handy in troubleshooting regressions or experimenting with an existing code.
image

Describe the solution you'd like
Ability to debug a GoLang test with different sets of environment variables and possibly other flags.

Describe alternatives you've considered
The workaround is to launch vscode process with specific set of environment variables, but this is sub optimal.

@gopherbot gopherbot added this to the Untriaged milestone Jul 25, 2022
@hyangah hyangah added Debug Issues related to the debugging functionality of the extension. debug/config Issues for config discrepancies b/n settings.json, launch.json, launch with F5, run test, debug test labels Jul 26, 2022
@hyangah hyangah modified the milestones: Untriaged, vscode-go/later Jul 26, 2022
@hyangah
Copy link
Contributor

hyangah commented Jul 26, 2022

I think this is a duplicate of #1293

@hyangah
Copy link
Contributor

hyangah commented Jul 28, 2022

Closing this in favor of #1293

@hyangah hyangah closed this as completed Jul 28, 2022
@golang golang locked and limited conversation to collaborators Jul 28, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug/config Issues for config discrepancies b/n settings.json, launch.json, launch with F5, run test, debug test Debug Issues related to the debugging functionality of the extension. FrozenDueToAge
Projects
None yet
Development

No branches or pull requests

3 participants