Beispiel #1
0
        void GotoFilePosition()
        {
            if (lastsrcfile != null)
            {
                AdvancedTextBox atb2 = ServiceHost.File[lastsrcfile] as AdvancedTextBox;
                if (atb2 != null)
                {
                    atb2.debugline   = -1;
                    atb2.debugexcept = false;
                }
            }

            lastlinenr  = dbg.TopFrame.LineNumber;
            lastsrcfile = dbg.TopFrame.Filename;
            AdvancedTextBox atb = proj.OpenFile(lastsrcfile) as AdvancedTextBox;

            if (atb != null)
            {
                atb.debugline   = lastlinenr;
                atb.debugexcept = dbg.lastexinfo != null;
                atb.MoveIntoView(lastlinenr);
                ServiceHost.File.BringToFront(atb);
            }
        }