BreakPoint.cs 671 B

12345678910111213141516171819
  1. namespace Jint.Runtime.Debugger;
  2. // BreakPoint is not sealed. It's useful to be able to add additional properties on a derived BreakPoint class (e.g. a breakpoint ID
  3. // or breakpoint type) but still let it be managed by Jint's breakpoint collection.
  4. public class BreakPoint
  5. {
  6. public BreakPoint(string? source, int line, int column, string? condition = null)
  7. {
  8. Location = new BreakLocation(source, line, column);
  9. Condition = condition;
  10. }
  11. public BreakPoint(int line, int column, string? condition = null) : this(null, line, column, condition)
  12. {
  13. }
  14. public BreakLocation Location { get; }
  15. public string? Condition { get; }
  16. }