public void UpdateDebugger() { if (InvokeRequired) { var del = new UpdateDebuggerDelegate(UpdateDebugger); Invoke(del, null); } else { //does not need to be thread safe as this is invoked from UI thread. UpdateStack(); if (DebugEntity.Thread.ThreadBreak == VMThreadBreakMode.Pause) { Editor.NewBreak(Editor.DebugFrame); StackView.Enabled = true; ObjectDataGrid.Enabled = true; } else { Editor.Resume(); StackView.Enabled = false; ObjectDataGrid.Enabled = false; } } }