Bannerets / ocamlearlybird

OCaml debug adapter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ocamlearlybird: make OCaml debugging less sucks

ocamlearlybird is a debug adapter purely written in OCaml. See debug adapter protocol to get more information.

Installation

ocamlearlybird can be installed with opam:

opam install earlybird

To use ocamlearlybird in VS Code. Install the extension

Features

default

  • Auto discover sources heuristically
  • Line breakpoints and column breakpoints
  • Basic next, step in, step out and continue commands
  • Inspect stack frames, local variables, closure variables and global variables
  • Function breakpoints
  • Limited expression evaluation
  • Conditional breakpoints
  • Time travel

Documentation

By default ocamlearlybird use stdin and stdout for debug adapter protocol. To launch ocamlearlybird as debug adapter in server mode:

ocamlearlybird --server --port=4711

Example launch configuration

{
  "name": "Debug",
  "type": "ocaml-debugger",
  "request": "launch",
  "program": "${workspaceRoot}/_build/default/main.bc",
  "console": "internalConsole",
  "dotMerlins": ["${workspaceRoot}/.merlin"],
  "noDebug": false,
  "stopOnEntry": false,
  "env": {
    "OCAMLRUNPARAM": "b"
  }
}

About

OCaml debug adapter

License:MIT License


Languages

Language:OCaml 100.0%