private void RootFrameNavigationFailed(object sender, NavigationFailedEventArgs e) { EmailLogProvider.Log(e.Exception); if (System.Diagnostics.Debugger.IsAttached) { // A navigation has failed; break into the debugger System.Diagnostics.Debugger.Break(); } }