Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        private void OnLoadScript(DebugEvent e)
        {
            // Sync up the breakpoints for this file.

            uint scriptIndex = e.GetScriptIndex();

            DebugFrontend.Script script = debugger.GetScript(scriptIndex);

            string fullPath = GetLocalPath(script.name);

            if (fullPath != null)
            {
                m_PathMap[fullPath] = scriptIndex;
            }

            foreach (BreakPointInfo info in breakPointManager.BreakPoints)
            {
                if (info.FileFullPath == fullPath && info.Line > 0 && info.IsEnabled && !info.IsDeleted)
                {
                    debugger.ToggleBreakpoint(e.GetVm(), scriptIndex, (uint)info.Line);
                }
            }

            // Tell the backend we're done processing this script for loading.
            debugger.DoneLoadingScript(e.GetVm());
        }
Exemple #2
0
        /// <summary>
        ///
        /// </summary>
        private void OnDestroyVM(DebugEvent e)
        {
            uint vm = e.GetVm();

            vms.Remove(vm);

            UpdateVirtualMachinesUI();
        }
Exemple #3
0
        /// <summary>
        ///
        /// </summary>
        private void OnNameVM(DebugEvent e)
        {
            uint vm = e.GetVm();

            vms[vm] = e.GetMessageStr();

            UpdateVirtualMachinesUI();
        }
Exemple #4
0
        /// <summary>
        ///
        /// </summary>
        private void OnCreateVM(DebugEvent e)
        {
            uint vm = e.GetVm();

            vms.Add(vm, vm.ToString("X"));

            UpdateVirtualMachinesUI();
        }
Exemple #5
0
        /// <summary>
        ///
        /// </summary>
        private void OnBreak(DebugEvent e)
        {
            m_CurrentVM = e.GetVm();

            UpdateUI(DebuggerState.BreakHalt);
        }