Made the Debugger.Break() only exist in debug mode.

This commit is contained in:
Lars Brubaker 2015-09-17 13:45:26 -07:00
parent 6af489407d
commit 79928f8fb7
20 changed files with 57 additions and 55 deletions

View file

@ -309,7 +309,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
catch (Exception e)
{
Debug.Print(e.Message);
Debugger.Break();
GuiWidget.BreakInDebugger();
}
gCodeRenderer.CreateFeaturesForLayerIfRequired(0);
}