private void Debugger_Error(object sender, ErrorEventArgs e) { InvokeAsync(() => { MessageBoxService.SetOwner(Application.Current.MainWindow); MessageBoxService.ShowMessage($"Error: {ErrorToString(e)}", Constants.Title, MessageBoxButton.OK, MessageBoxImage.Error); }); }