Exemplo n.º 1
0
        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();
            }
        }
Exemplo n.º 2
0
        private void DebugServiceBreakpointContinue(object sender, SledDebugServiceBreakpointEventArgs e)
        {
            m_curBreakpoint = e.Breakpoint.Clone() as SledNetworkBreakpoint;

            RemoveCurrentStatementIndicators();
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
 private void DebugServiceUpdateEnd(object sender, SledDebugServiceBreakpointEventArgs e)
 {
     SledOutDevice.OutLine(SledMessageType.Info, "DebugService.UpdateEnd");
 }
Exemplo n.º 6
0
 private void DebugServiceBreakpointContinue(object sender, SledDebugServiceBreakpointEventArgs e)
 {
     SledOutDevice.OutLine(SledMessageType.Info, "DebugService.BreakpointContinue");
 }
Exemplo n.º 7
0
 private void DebugServiceUpdateEnd(object sender, SledDebugServiceBreakpointEventArgs e)
 {
     m_editor.TreeListViewAdapter.VirtualListSize = m_trace.Count;
 }
Exemplo n.º 8
0
 private void DebugServiceUpdateEnd(object sender, SledDebugServiceBreakpointEventArgs e)
 {
     InputEnabled = true;
     Flush();
 }
Exemplo n.º 9
0
 private void DebugServiceBreakpointContinue(object sender, SledDebugServiceBreakpointEventArgs e)
 {
     InputEnabled = false;
 }