2
0

BreakPoint.cs 692 B

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