예제 #1
0
        internal Breakpoint NewCommandBreakpoint(string command, ScriptBlock action)
        {
            ++this._numBreakpoints;
            WildcardPattern   wildcardPattern   = new WildcardPattern(command, WildcardOptions.Compiled | WildcardOptions.IgnoreCase);
            CommandBreakpoint commandBreakpoint = new CommandBreakpoint(this._context, this._scriptPath, wildcardPattern, command, action);

            this.AddBreakpoint <WildcardPattern>(this._commandBreakpoints, wildcardPattern, (Breakpoint)commandBreakpoint);
            return((Breakpoint)commandBreakpoint);
        }
예제 #2
0
 private Breakpoint AddCommandBreakpoint(CommandBreakpoint breakpoint)
 {
     this.AddBreakpointCommon(breakpoint);
     this._commandBreakpoints.Add(breakpoint);
     return(breakpoint);
 }
예제 #3
0
 internal void RemoveCommandBreakpoint(CommandBreakpoint breakpoint)
 {
     this._commandBreakpoints.Remove(breakpoint);
 }
예제 #4
0
파일: Debugger.cs 프로젝트: nickchal/pash
 private Breakpoint AddCommandBreakpoint(CommandBreakpoint breakpoint)
 {
     this.AddBreakpointCommon(breakpoint);
     this._commandBreakpoints.Add(breakpoint);
     return breakpoint;
 }
예제 #5
0
파일: Debugger.cs 프로젝트: nickchal/pash
 internal void RemoveCommandBreakpoint(CommandBreakpoint breakpoint)
 {
     this._commandBreakpoints.Remove(breakpoint);
 }
예제 #6
0
 internal void Remove(CommandBreakpoint breakpoint) => this.RemoveDictionaryBreakpoint <WildcardPattern>(this._commandBreakpoints, breakpoint.CommandPattern, (Breakpoint)breakpoint);