Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Set value refactoring #1965

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
using MonoDevelop.Ide.Commands;
using MonoDevelop.Ide.Editor.Extension;
using System.Linq;
using Mono.Debugging.Evaluation;
using MonoDevelop.Ide.Fonts;

namespace MonoDevelop.Debugger
Expand Down Expand Up @@ -1488,8 +1489,11 @@ void OnValueEdited (object s, EditedArgs args)
MessageService.ShowError (GettextCatalog.GetString ("Unregognized escape sequence."));
return;
}
*/ if (val.Value != newVal)
*/
if (val.Value != newVal)
val.Value = newVal;
} catch (ValueModificationException e) {
MessageService.ShowError (e.Message);
} catch (Exception ex) {
LoggingService.LogError ("Could not set value for object '" + val.Name + "'", ex);
}
Expand Down