Exemplo n.º 1
0
        public static void OnCurrentFileChanged()
        {
            string file = Npp.GetCurrentFile();

            string dbg = CSScriptHelper.GetDbgInfoFile(file);

            if (File.Exists(dbg))
            {
                PlaceBreakPointsForCurrentTab();
            }

            if (!IsRunning)
            {
                OnNextFileOpenComplete = null;
                Npp.ClearIndicator(INDICATOR_DEBUGSTEP, 0, -1); //clear all document
            }
            else
            {
                if (OnNextFileOpenComplete != null)
                {
                    OnNextFileOpenComplete();
                    OnNextFileOpenComplete = null;
                }
            }

            if (OnBreakpointChanged != null)
            {
                OnBreakpointChanged();
            }
        }
Exemplo n.º 2
0
 private static void ClearDebuggingMarkers()
 {
     if (lastLocation != null)
     {
         if (string.Compare(Npp.GetCurrentFile(), lastLocation.File, true) == 0)
         {
             Npp.ClearIndicator(INDICATOR_DEBUGSTEP, lastLocation.Start, lastLocation.End);
             Npp.DeleteAllMarkers(MARK_DEBUGSTEP);
         }
     }
 }