package dap

  1. Overview
  2. Docs
Debug adapter protocol

Install

Dune Dependency

Authors

Maintainers

Sources

dap-1.0.5.tbz
sha256=89b529759810e9b7b6d4e70e1c606261450c2e29dc74d023e300c5286c4f5914
sha512=009bd57fafab07258082dd637af817bab33bf4354fa7ad5299200b86db35c1dedd3def8988bfcb9a51cf06fd18163a370a78e1af24b3d441806cd6ce33d48fda

doc/dap.types/Debug_protocol/Scope/index.html

Module Debug_protocol.ScopeSource

Sourcemodule Presentation_hint : sig ... end
Sourcetype t = {
  1. name : string;
    (*

    Name of the scope such as 'Arguments', 'Locals', or 'Registers'. This string is shown in the UI as is and can be translated.

    *)
  2. presentation_hint : Presentation_hint.t option;
    (*

    An optional hint for how to present this scope in the UI. If this attribute is missing, the scope is shown with a generic UI.

    *)
  3. variables_reference : int;
    (*

    The variables of this scope can be retrieved by passing the value of variablesReference to the VariablesRequest.

    *)
  4. named_variables : int option;
    (*

    The number of named variables in this scope. The client can use this optional information to present the variables in a paged UI and fetch them in chunks.

    *)
  5. indexed_variables : int option;
    (*

    The number of indexed variables in this scope. The client can use this optional information to present the variables in a paged UI and fetch them in chunks.

    *)
  6. expensive : bool;
    (*

    If true, the number of variables in this scope is large or expensive to retrieve.

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

    Optional source for this scope.

    *)
  8. line : int option;
    (*

    Optional start line of the range covered by this scope.

    *)
  9. column : int option;
    (*

    Optional start column of the range covered by this scope.

    *)
  10. end_line : int option;
    (*

    Optional end line of the range covered by this scope.

    *)
  11. end_column : int option;
    (*

    Optional end column of the range covered by this scope.

    *)
}

A Scope is a named container for variables. Optionally a scope can map to a source or a range within a source.

Sourceval make : name:string -> ?presentation_hint:Presentation_hint.t option -> variables_reference:int -> ?named_variables:int option -> ?indexed_variables:int option -> expensive:bool -> ?source:Source.t option -> ?line:int option -> ?column:int option -> ?end_line:int option -> ?end_column:int option -> unit -> t
Sourceval to_yojson : t -> Yojson.Safe.t
OCaml

Innovation. Community. Security.