Skip to content

Instantly share code, notes, and snippets.

@jrwren
Created August 26, 2011 19:52
Show Gist options
  • Select an option

  • Save jrwren/1174270 to your computer and use it in GitHub Desktop.

Select an option

Save jrwren/1174270 to your computer and use it in GitHub Desktop.
conditional global exception handling
if (!System.Diagnostics.Debugger.IsAttached)
{
this.DispatcherUnhandledException += new System.Windows.Threading.DispatcherUnhandledExceptionEventHandler(App_DispatcherUnhandledException);
AppDomain.CurrentDomain.UnhandledException += this.CurrentDomain_UnhandledException;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment