Exemplo n.º 1
0
        /// <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);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        private void OnNameVM(DebugEvent e)
        {
            uint vm = e.GetVm();

            vms[vm] = e.GetMessageStr();

            UpdateVirtualMachinesUI();
        }
Exemplo n.º 3
0
        /// <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);
        }
Exemplo n.º 4
0
        /// <summary>
        ///
        /// </summary>
        private void OnLoadError(DebugEvent e)
        {
            TraceManager.AddAsync(e.GetMessageStr(), (int)TraceType.Error);

            UpdateUI(DebuggerState.ExceptionHalt);
        }