private void OnException(object sender, CorExceptionEventArgs e) { Console.Out.WriteLine("Exception {0}...", e); }
private void ExceptionEventHandler(Object sender, CorExceptionEventArgs e) { Trace.WriteLine("ManagedCallback::Exception"); BeginManagedDebugEvent(); try { if (InternalHandleRawMode(ManagedCallbackType.OnException, e)) return; // This callback is deprecated by more recent Exception2 callback that // contains all new functionality. // See more info in Exception2 callback if (HandleCustomPostCallback(ManagedCallbackType.OnException, e)) return; } finally { EndManagedDebugEvent(e); } }