Пример #1
0
        public void RemoveBreakpoint(int lineNumber)
        {
            var lineBreakpoint = new LineBreakpoint(lineNumber);

            if (!_breakpoints.Contains(lineBreakpoint))
            {
                return;
            }

            _breakpoints.Remove(lineBreakpoint);
        }
Пример #2
0
        public void AddBreakpoint(int lineNumber)
        {
            if (_cachedScriptPath == null)
            {
                CacheRunbook();
            }

            var lineBreakpoint = new LineBreakpoint(lineNumber);

            // We can only have one breakpoint per line
            if (_breakpoints.Contains(lineBreakpoint))
            {
                return;
            }

            _breakpoints.Add(lineBreakpoint);
        }
Пример #3
0
 public BreakpointEventArgs(LineBreakpoint lineBreakpoint)
 {
     Breakpoint = lineBreakpoint;
     IsDeleted = false;
 }
Пример #4
0
 public BreakpointEventArgs(LineBreakpoint lineBreakpoint, bool isDeleted)
 {
     Breakpoint = lineBreakpoint;
     IsDeleted = isDeleted;
 }
Пример #5
0
 public BreakpointEventArgs(LineBreakpoint lineBreakpoint)
 {
     Breakpoint = lineBreakpoint;
     IsDeleted  = false;
 }
Пример #6
0
 public BreakpointEventArgs(LineBreakpoint lineBreakpoint, bool isDeleted)
 {
     Breakpoint = lineBreakpoint;
     IsDeleted  = isDeleted;
 }