Module Debug_protocol.Source_breakpoint

type t = {
line : int;

The source line of the breakpoint or logpoint.

column : int option;

An optional source column of the breakpoint.

condition : string option;

An optional expression for conditional breakpoints. It is only honored by a debug adapter if the capability 'supportsConditionalBreakpoints' is true.

hit_condition : string option;

An optional expression that controls how many hits of the breakpoint are ignored. The backend is expected to interpret the expression as needed. The attribute is only honored by a debug adapter if the capability 'supportsHitConditionalBreakpoints' is true.

log_message : string option;

If this attribute exists and is non-empty, the backend must not 'break' (stop) but log the message instead. Expressions within {} are interpolated. The attribute is only honored by a debug adapter if the capability 'supportsLogPoints' is true.

}

Properties of a breakpoint or logpoint passed to the setBreakpoints request.

val make : line:int -> ?⁠column:int option -> ?⁠condition:string option -> ?⁠hit_condition:string option -> ?⁠log_message:string option -> unit -> t
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or