private void DebugServiceBreakpointHit(object sender, SledDebugServiceBreakpointEventArgs e) { try { var hwnd = SledUser32.GetForegroundWindow(); if (hwnd == m_mainForm.Handle) return; SledUser32.FlashWindow(m_mainForm.Handle); } catch (Exception ex) { ex.ToString(); } }
private void DebugServiceBreakpointContinue(object sender, SledDebugServiceBreakpointEventArgs e) { m_curBreakpoint = e.Breakpoint.Clone() as SledNetworkBreakpoint; RemoveCurrentStatementIndicators(); }
private void DebugServiceBreakpointHit(object sender, SledDebugServiceBreakpointEventArgs e) { if (string.IsNullOrEmpty(e.Breakpoint.File)) { // TODO: open a faux document saying something about unknown file? return; } // Get absolute path to file var szAbsPath = SledUtil.GetAbsolutePath(e.Breakpoint.File, m_projectService.AssetDirectory); if (!string.IsNullOrEmpty(szAbsPath) && File.Exists(szAbsPath)) { ISledDocument sd; var uri = new Uri(szAbsPath); // If already open jump to line otherwise open the file if (m_documentService.IsOpen(uri, out sd)) { m_gotoService.Get.GotoLine(sd, m_curBreakpoint.Line, true); } else { m_documentService.Open(uri, out sd); } } MarkProjectDocsReadOnly(false); }
private void DebugServiceBreakpointHitting(object sender, SledDebugServiceBreakpointEventArgs e) { m_curBreakpoint = e.Breakpoint.Clone() as SledNetworkBreakpoint; if (m_curBreakpoint.IsUnknownFile()) return; // Get absolute path to file var szAbsPath = SledUtil.GetAbsolutePath(e.Breakpoint.File, m_projectService.AssetDirectory); if (string.IsNullOrEmpty(szAbsPath) || !File.Exists(szAbsPath)) return; // Check if file is in the project var projFile = m_projectFileFinderService.Get.Find(szAbsPath); // Try and add file to project if (projFile == null) m_projectService.AddFile(szAbsPath, out projFile); }
private void DebugServiceUpdateEnd(object sender, SledDebugServiceBreakpointEventArgs e) { SledOutDevice.OutLine(SledMessageType.Info, "DebugService.UpdateEnd"); }
private void DebugServiceBreakpointContinue(object sender, SledDebugServiceBreakpointEventArgs e) { SledOutDevice.OutLine(SledMessageType.Info, "DebugService.BreakpointContinue"); }
private void DebugServiceUpdateEnd(object sender, SledDebugServiceBreakpointEventArgs e) { m_editor.TreeListViewAdapter.VirtualListSize = m_trace.Count; }
private void DebugServiceUpdateEnd(object sender, SledDebugServiceBreakpointEventArgs e) { InputEnabled = true; Flush(); }
private void DebugServiceBreakpointContinue(object sender, SledDebugServiceBreakpointEventArgs e) { InputEnabled = false; }