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

Edit environment variables in when starting the debugging session #320

Merged
merged 3 commits into from
Apr 28, 2024

Conversation

ElektroKill
Copy link
Member

@ElektroKill ElektroKill commented Apr 28, 2024

Link to issue(s) this pull request covers:
fixes #312

Problem

dnSpy did not allow configuring the environment variables passed to the debugged process.

Solution

An additional field in the start debugging options dialog has been added to display the environment variables passed into the debugged process and allow editing them.
image
The user can double-click on any entry in either column to edit the value. The variables can be removed and additional rows can be added using corresponding buttons. The Reset button will reset the dialog to the state before any changes where applied using it. The Add Many button allows the user to bulk add environment variables using the following format:
key=value;key1=value1 with " symbols being allowed in case the value or key must contain = or ; characters.

@ElektroKill ElektroKill added this to the vNext milestone Apr 28, 2024
@ElektroKill ElektroKill added the enhancement New feature or request label Apr 28, 2024
@ElektroKill ElektroKill merged commit 7f558b8 into master Apr 28, 2024
3 checks passed
@ElektroKill ElektroKill deleted the feature/debugger-environment-variables branch April 28, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support custom environment variables
1 participant