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

Commit aad2024

Browse files
committed
[Debugger] When the user clicks the Refresh button, refresh the ObjectValue
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/999605/
1 parent 23f5029 commit aad2024

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ObjectValue/DebuggerObjectValueNode.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ static Task<ObjectValue[]> GetChildrenAsync (ObjectValue value, int index, int c
172172

173173
void OnDebuggerValueChanged (object sender, EventArgs e)
174174
{
175-
OnValueChanged (e);
175+
Runtime.RunInMainThread (() => {
176+
OnValueChanged (e);
177+
}).Ignore ();
176178
}
177179

178180
bool GetCanEdit ()

main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ObjectValue/Mac/MacDebuggerObjectPinView.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ void OnPinButtonClicked (object sender, EventArgs e)
126126

127127
void OnLiveUpdateButtonClicked (object sender, EventArgs e)
128128
{
129-
if (pinned) {
129+
if (Node != null && pinned) {
130130
DebuggingService.SetLiveUpdateMode (TreeView.PinnedWatch, !TreeView.PinnedWatch.LiveUpdate);
131-
Refresh ();
131+
Node.Refresh ();
132132
}
133133
}
134134

0 commit comments

Comments
 (0)