/// <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()); }
/// <summary> /// /// </summary> private void OnDestroyVM(DebugEvent e) { uint vm = e.GetVm(); vms.Remove(vm); UpdateVirtualMachinesUI(); }
/// <summary> /// /// </summary> private void OnNameVM(DebugEvent e) { uint vm = e.GetVm(); vms[vm] = e.GetMessageStr(); UpdateVirtualMachinesUI(); }
/// <summary> /// /// </summary> private void OnCreateVM(DebugEvent e) { uint vm = e.GetVm(); vms.Add(vm, vm.ToString("X")); UpdateVirtualMachinesUI(); }
/// <summary> /// /// </summary> private void OnBreak(DebugEvent e) { m_CurrentVM = e.GetVm(); UpdateUI(DebuggerState.BreakHalt); }