public void RemoveBreakLineMarkers() { try { DebugExecutionCompleted?.Invoke(this, null); } catch (Exception e) { Errors.ShowCritical($"An error occurred while clearing break line markers: {e.Message}\r\n\r\n{e.StackTrace}"); } }
public virtual void OnExecutionCompleted(ExecutionCompletedEventArgs execCompleted) { ThreadHelper.ThrowIfNotOnUIThread(); try { VsEditor.NavigateToFileAndLine(ServiceProvider.GlobalProvider, execCompleted.File, execCompleted.Lines[0]); // Clear VS debugger break markers because they may be stale (clicking Debug in our toolbar does not update them, for instance) var vsDebuggerBreakLineMarkers = VsEditor.GetLineMarkersOfTypeInActiveView(ServiceProvider.GlobalProvider, 63); foreach (var m in vsDebuggerBreakLineMarkers) { m.Invalidate(); } // Draw our own markers DebugExecutionCompleted?.Invoke(this, execCompleted); } catch (Exception e) { Errors.ShowCritical($"An error occurred while showing the current breakpoint location: {e.Message}\r\n\r\n{e.StackTrace}"); } }