Example #1
0
        public PythonBreakpoint(
            PythonProcess process,
            string filename,
            int lineNo,
            PythonBreakpointConditionKind conditionKind,
            string condition,
            PythonBreakpointPassCountKind passCountKind,
            int passCount,
            int breakpointId,
            bool isDjangoBreakpoint = false
            )
        {
            Debug.Assert(conditionKind != PythonBreakpointConditionKind.Always || string.IsNullOrEmpty(condition));
            Debug.Assert(passCountKind != PythonBreakpointPassCountKind.Always || passCount == 0);

            _process            = process;
            _filename           = filename;
            _lineNo             = lineNo;
            _breakpointId       = breakpointId;
            _conditionKind      = conditionKind;
            _condition          = condition;
            _passCountKind      = passCountKind;
            _passCount          = passCount;
            _isDjangoBreakpoint = isDjangoBreakpoint;
        }
Example #2
0
        public PythonBreakpoint(
            PythonProcess process,
            string filename,
            int lineNo,
            PythonBreakpointConditionKind conditionKind,
            string condition,
            PythonBreakpointPassCountKind passCountKind,
            int passCount,
            int breakpointId,
            bool isDjangoBreakpoint = false
        ) {
            Debug.Assert(conditionKind != PythonBreakpointConditionKind.Always || string.IsNullOrEmpty(condition));
            Debug.Assert(passCountKind != PythonBreakpointPassCountKind.Always || passCount == 0);

            _process = process;
            _filename = filename;
            _lineNo = lineNo;
            _breakpointId = breakpointId;
            _conditionKind = conditionKind;
            _condition = condition;
            _passCountKind = passCountKind;
            _passCount = passCount;
            _isDjangoBreakpoint = isDjangoBreakpoint;
        }
Example #3
0
 internal void SetPassCount(PythonBreakpointPassCountKind kind, int passCount)
 {
     _passCountKind = kind;
     _passCount     = passCount;
     _process.SetBreakPointPassCount(this);
 }
Example #4
0
 public PythonBreakpoint AddBreakPoint(
     string filename,
     int lineNo,
     PythonBreakpointConditionKind conditionKind = PythonBreakpointConditionKind.Always,
     string condition = "",
     PythonBreakpointPassCountKind passCountKind = PythonBreakpointPassCountKind.Always,
     int passCount = 0
 ) {
     int id = _breakpointCounter++;
     var res = new PythonBreakpoint(this, filename, lineNo, conditionKind, condition, passCountKind, passCount, id);
     _breakpoints[id] = res;
     return res;
 }
Example #5
0
 internal Task SetPassCountAsync(PythonBreakpointPassCountKind kind, int passCount, CancellationToken ct)
 {
     _passCountKind = kind;
     _passCount     = passCount;
     return(_process.SetBreakpointPassCountAsync(this, ct));
 }
Example #6
0
 internal void SetPassCount(PythonBreakpointPassCountKind kind, int passCount) {
     _passCountKind = kind;
     _passCount = passCount;
     _process.SetBreakPointPassCount(this);
 }