Skip to content

Commit

Permalink
Fix debugger settings update on Mono
Browse files Browse the repository at this point in the history
  • Loading branch information
ElektroKill committed Apr 27, 2024
1 parent 83776fb commit 32d6199
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ protected void Initialize(MonoStartDebuggingOptionsBase options) {
CommandLine = options.CommandLine ?? string.Empty;
// Must be init'd after Filename since it also overwrites this property
WorkingDirectory = options.WorkingDirectory ?? string.Empty;
Environment.Clear();
Environment.AddRange(options.Environment.Environment);
ConnectionPort.Value = options.ConnectionPort;
ConnectionTimeout.Value = (uint)options.ConnectionTimeout.TotalSeconds;
BreakKind = FilterBreakKind(options.BreakKind);
Expand All @@ -185,6 +187,8 @@ protected void GetOptions(MonoStartDebuggingOptionsBase options) {
options.Filename = Filename;
options.CommandLine = CommandLine;
options.WorkingDirectory = WorkingDirectory;
options.Environment.Clear();
options.Environment.AddRange(Environment.Environment);
options.ConnectionPort = ConnectionPort.Value;
options.ConnectionTimeout = TimeSpan.FromSeconds(ConnectionTimeout.Value);
options.BreakKind = FilterBreakKind(BreakKind);
Expand Down

0 comments on commit 32d6199

Please sign in to comment.