package dap

  1. Overview
  2. Docs
Debug adapter protocol

Install

Dune Dependency

Authors

Maintainers

Sources

dap-1.0.1.tbz
sha256=2c1cb97ed697a3b3c236b3d6d42332193ed9e4f169845551d3690bfa8aa1f527
sha512=9653b7e91148b0a86c41084524dc52ac25e2062d0c39965ab6a916791e9149ca0459ad1e12a71f0670e1956e5295c08356c3bb26bf99090739763f3dbe1fcbdb

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

Module Debug_protocol.ResponseSource

Sourcemodule Type : sig ... end
Sourcemodule Message : sig ... end
Sourcetype t = {
  1. seq : int;
    (*

    Sequence number (also known as message ID). For protocol messages of type 'request' this ID can be used to cancel the request.

    *)
  2. type_ : Type.t;
  3. request_seq : int;
    (*

    Sequence number of the corresponding request.

    *)
  4. success : bool;
    (*

    Outcome of the request. If true, the request was successful and the 'body' attribute may contain the result of the request. If the value is false, the attribute 'message' contains the error in short form and the 'body' may contain additional information (see 'ErrorResponse.body.error').

    *)
  5. command : string;
    (*

    The command requested.

    *)
  6. message : Message.t option;
    (*

    Contains the raw error in short form if 'success' is false. This raw error might be interpreted by the frontend and is not shown in the UI. Some predefined values exist.

    *)
  7. body : Yojson.Safe.t;
    (*

    Contains request result if success is true and optional error details if success is false.

    *)
}
Sourceval make : seq:int -> type_:Type.t -> request_seq:int -> success:bool -> command:string -> ?message:Message.t option -> ?body:Yojson.Safe.t -> unit -> t
Sourceval to_yojson : t -> Yojson.Safe.t
OCaml

Innovation. Community. Security.