Edit environment variables in when starting the debugging session #320
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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. TheAdd 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.