package dap

  1. Overview
  2. Docs

Module Evaluate_command.ArgumentsSource

Sourcemodule Context : sig ... end
Sourcetype t = {
  1. expression : string;
    (*

    The expression to evaluate.

    *)
  2. frame_id : int option;
    (*

    Evaluate the expression in the scope of this stack frame. If not specified, the expression is evaluated in the global scope.

    *)
  3. line : int option;
    (*

    The contextual line where the expression should be evaluated. In the 'hover' context, this should be set to the start of the expression being hovered.

    *)
  4. column : int option;
    (*

    The contextual column where the expression should be evaluated. This may be provided if `line` is also provided.

    It is measured in UTF-16 code units and the client capability `columnsStartAt1` determines whether it is 0- or 1-based.

    *)
  5. source : Source.t option;
    (*

    The contextual source in which the `line` is found. This must be provided if `line` is provided.

    *)
  6. context : Context.t option;
    (*

    The context in which the evaluate request is used.

    *)
  7. format : Value_format.t option;
    (*

    Specifies details on how to format the result. The attribute is only honored by a debug adapter if the corresponding capability `supportsValueFormattingOptions` is true.

    *)
}

Arguments for `evaluate` request.

Sourceval make : expression:string -> ?frame_id:int option -> ?line:int option -> ?column:int option -> ?source:Source.t option -> ?context:Context.t option -> ?format:Value_format.t option -> unit -> t
Sourceval to_yojson : t -> Yojson.Safe.t