/// <summary> /// /// </summary> private void OnException(DebugEvent e) { TraceManager.AddAsync(e.GetMessageStr(), (int)TraceType.Error); UpdateUI(DebuggerState.ExceptionHalt); DialogResult result = MessageBox.Show(e.GetMessageStr(), "Exception", MessageBoxButtons.AbortRetryIgnore, MessageBoxIcon.Exclamation); if (result == DialogResult.Ignore) { debugger.Continue(m_CurrentVM); } }
/// <summary> /// /// </summary> private void OnNameVM(DebugEvent e) { uint vm = e.GetVm(); vms[vm] = e.GetMessageStr(); UpdateVirtualMachinesUI(); }
/// <summary> /// /// </summary> private void OnMessage(DebugEvent e) { MessageType type = e.GetMessageType(); int state = (int)TraceType.Info; if (type == MessageType.MessageType_Warning) { state = (int)TraceType.Warning; } else if (type == MessageType.MessageType_Error) { state = (int)TraceType.Error; } TraceManager.AddAsync(e.GetMessageStr(), state); }
/// <summary> /// /// </summary> private void OnLoadError(DebugEvent e) { TraceManager.AddAsync(e.GetMessageStr(), (int)TraceType.Error); UpdateUI(DebuggerState.ExceptionHalt); }