コード例 #1
0
 void OnUnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     if (System.Diagnostics.Debugger.IsAttached)
     {
         System.Diagnostics.Debugger.Break();
     }
     else
     {
         Utilities.OnException(e.Exception);
     }
 }
コード例 #2
0
 void OnUnobservedTaskException(object sender, System.Threading.Tasks.UnobservedTaskExceptionEventArgs e)
 {
     if (System.Diagnostics.Debugger.IsAttached)
     {
         System.Diagnostics.Debugger.Break();
     }
     else
     {
         Utilities.OnException(e.Exception);
     }
 }