Put in lots of code to break on exceptions in the debugger.

Made the cloud provider able to report that it is loading
This commit is contained in:
Lars Brubaker 2015-09-11 10:48:24 -07:00
parent 7ef6132bd1
commit fa97829073
23 changed files with 194 additions and 106 deletions

View file

@ -685,6 +685,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
}
catch (Exception e)
{
Debug.Print(e.Message);
Debugger.Break();
Debug.WriteLine(string.Format("Error loading configuration: {0}", e));
return null;
}
@ -717,6 +719,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
}
catch (Exception e)
{
Debug.Print(e.Message);
Debugger.Break();
Debug.WriteLine(string.Format("Error loading configuration: {0}", e));
}
}
@ -912,6 +916,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
}
catch (Exception e)
{
Debug.Print(e.Message);
Debugger.Break();
string stackTraceNoBackslashRs = e.StackTrace.Replace("\r", "");
ContactFormWindow.Open("Parse Error while slicing".Localize(), e.Message + stackTraceNoBackslashRs);
return false;

View file

@ -35,6 +35,7 @@ using MatterHackers.MatterControl.CustomWidgets;
using MatterHackers.VectorMath;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace MatterHackers.MatterControl.SlicerConfiguration
@ -251,8 +252,10 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
{
dropDownList.SelectedValue = ActivePrinterProfile.Instance.GetMaterialSetting(presetIndex).ToString();
}
catch
catch(Exception e)
{
Debug.Print(e.Message);
Debugger.Break();
//Unable to set selected value
}
}
@ -262,8 +265,10 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
{
dropDownList.SelectedValue = ActivePrinterProfile.Instance.ActiveQualitySettingsID.ToString();
}
catch
catch(Exception e)
{
Debug.Print(e.Message);
Debugger.Break();
//Unable to set selected value
}
}
@ -318,8 +323,10 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
{
SelectedLabel = MatterSliceInfo.DisplayName;
}
catch
catch(Exception e)
{
Debug.Print(e.Message);
Debugger.Break();
throw new Exception("MatterSlice is not available, for some strange reason");
}
}