private void debugOutput(string theOutputText) { try { System.Diagnostics.Debug.Write(theOutputText + Environment.NewLine); PageIndicator.Text = PageIndicator.Text + theOutputText + Environment.NewLine; PageIndicator.SelectionStart = PageIndicator.TextLength; PageIndicator.ScrollToCaret(); } catch (Exception ex) { System.Diagnostics.Debug.Write(ex.Message, ToString() + Environment.NewLine); } }