我們沒有任何測試團隊支持我們的產品開發。 等等。 我們需要攔截並處理所有異常以提高用戶體驗。 在windows phone應用程序中是否有任何解決方案?如何攔截並處理Windows phone應用程序的所有異常?
as app.xaml.cs文件中的Fllow。我們發現:
// Code to execute on Unhandled Exceptions
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
{
if (e.ExceptionObject is QuitException)
return;
if (System.Diagnostics.Debugger.IsAttached)
{
// An unhandled exception has occurred; break into the debugger
System.Diagnostics.Debugger.Break();
}
if (System.Diagnostics.Debugger.IsAttached)
{
// An unhandled exception has occurred; break into the debugger
System.Diagnostics.Debugger.Break();
}
}
我們一直在處理它們,而不是我們的代碼。以防萬一。我們需要獲取所有的異常信息。所以我們必須確保攔截所有這些。它會在你的建議中崩潰。 – 2012-08-09 07:33:19
如果您需要收集有關未處理的異常的信息,請使用您提到的事件(您甚至可以使用稱爲Little Watson的事件將意外發生的異常發送給自己http://blogs.msdn.com/b/andypennell/archive /2010/11/01/error-reporting-on-windows-phone-7.aspx – 2012-08-09 07:39:21
謝謝。我們想攔截所有異常信息並使用EmailTask發送到服務器。 – 2012-08-09 07:42:59