package earlybird

  1. Overview
  2. Docs
OCaml debug adapter

Install

Dune Dependency

Authors

Maintainers

Sources

earlybird-1.3.2.tbz
sha256=e5efcca0605d2c4768f837f89bf36e07da3698037e0ff548c538c44cebdf8bf0
sha512=f35df49f3197a3f9e0392ce9e428462d0e79cd354cfc079cef3395fed36622449c1b30073ed5f6fccd15d2cfa7020ed924111ea6e79ff6041dac36a98835e9d8

Description

Published: 27 Feb 2024

README

OCaml earlybird

OCaml debug adapter.

Installation

opam install earlybird

Usage

VS Code

See Debugging OCaml programs (experimental) in VSCode OCaml Platform README. This requires VSCode OCaml Platform 1.13 or newer.

Troubleshooting

Breakpoints not hit with (lang dune 3.0) and above

Change to (lang dune 3.7) or above and add (map_workspace_root false) to your dune-project. See dune documentation for more information.

Examples

utop

Screen capture of debugging utop.

Launch configuration used:

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "test_program",
            "type": "ocaml.earlybird",
            "request": "launch",
            "stopOnEntry": true,
            "console": "integratedTerminal",
            "program": "${workspaceFolder}/_build/default/examples/interact/test_program.bc",
            "onlyDebugGlob": "<${workspaceFolder}/**/*>",
            "yieldSteps": 1024,
            "cwd": "${workspaceFolder}"
        }
    ]
}

Dependencies (20)

  1. dap >= "1.0.6"
  2. lru >= "0.3.0"
  3. csexp >= "1.3.2"
  4. sexplib >= "v0.14.0"
  5. path_glob >= "0.2"
  6. fmt >= "0.8.9"
  7. logs >= "0.7.0"
  8. cmdliner >= "1.1.0"
  9. lwt_react >= "1.1.3"
  10. lwt_ppx >= "2.0.1"
  11. lwt >= "5.4.0"
  12. iter >= "1.2.1"
  13. ppx_optcomp >= "v0.11"
  14. ocaml-compiler-libs >= "v0.12.3"
  15. menhirLib >= "20201216"
  16. menhir >= "20201216" & build
  17. ppx_deriving_yojson >= "3.6.1"
  18. ppx_deriving >= "5.1"
  19. ocaml >= "4.12.0"
  20. dune >= "3.7"

Dev Dependencies (1)

  1. odoc with-doc

Used by

None

Conflicts

None

OCaml

Innovation. Community. Security.