void _process_OnDebuggerError(object sender, CorDebuggerErrorEventArgs e) { Marshal.ThrowExceptionForHR(e.HResult); }
void OnDebuggerError (object sender, CorDebuggerErrorEventArgs e) { Exception ex = Marshal.GetExceptionForHR (e.HResult); OnDebuggerOutput (true, string.Format ("Debugger Error: {0}\n", ex.Message)); }
private void DebuggerErrorEventHandler(Object sender, CorDebuggerErrorEventArgs e) { Trace.WriteLine("ManagedCallback::DebuggerError"); BeginManagedDebugEvent(); try { if (InternalHandleRawMode(ManagedCallbackType.OnDebuggerError, e)) return; e.Continue = false; InternalSignalRuntimeIsStopped(null, new DebuggerErrorStopReason(e.HResult)); Debug.Assert(false, "Critical failures -- received DebuggerError callback."); } finally { EndManagedDebugEvent(e); } }