void OnDebuggerError(DebuggerErrorDebugCallbackEventArgs e) { string msg; if (e.HError == CordbgErrors.CORDBG_E_UNCOMPATIBLE_PLATFORMS) msg = GetIncompatiblePlatformErrorMessage(); else msg = string.Format("A CLR debugger error occurred. Terminate the debugged process and try again.\n\nHR: 0x{0:X8}\nError: 0x{1:X8}", e.HError, e.ErrorCode); BringMainWindowToFrontAndActivate(); MainWindow.Instance.ShowMessageBox(msg); }
void OnDebuggerError(DebuggerErrorDebugCallbackEventArgs e) { string msg; if (e.HError == CordbgErrors.CORDBG_E_UNCOMPATIBLE_PLATFORMS) msg = GetIncompatiblePlatformErrorMessage(); else msg = string.Format(dnSpy_Debugger_Resources.Error_CLRDebuggerErrorOccurred, e.HError, e.ErrorCode); BringMainWindowToFrontAndActivate(); messageBoxService.Show(msg); }