Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. OCaml
  3. OCaml Debugger

OCaml Debugger

MITOCaml1.3.6

A debug adapter for OCaml programs that implements the Debug Adapter Protocol for VS Code integration.

GitHubGitHub
236 stars26 forks0 contributors

What is OCaml Debugger?

OCaml earlybird is a debug adapter implementation for the OCaml programming language that enables debugging capabilities through the Debug Adapter Protocol. It provides developers with essential debugging features like breakpoints, stepping, and variable inspection directly within their editor, specifically integrated with VS Code's OCaml Platform extension.

Target Audience

OCaml developers using VS Code with the OCaml Platform extension who need integrated debugging features like breakpoints, stepping, and variable inspection.

Value Proposition

Developers choose OCaml earlybird for its standardized Debug Adapter Protocol support, ensuring a consistent debugging experience, and its seamless integration with the VS Code OCaml Platform extension for streamlined OCaml development workflows.

Overview

OCaml debug adapter

Use Cases

Best For

  • Debugging OCaml programs in VS Code with breakpoints and stepping functionality.
  • Configuring debug sessions with custom arguments, environment variables, and working directories.
  • Handling forked OCaml processes by choosing to follow child or parent processes.
  • Setting breakpoints with configurable source directory search paths in complex projects.
  • Debugging OCaml programs built with Dune 3.7 or above by adjusting workspace root mapping.
  • Logging debug messages to a file for troubleshooting complex debugging issues.

Not Ideal For

  • Teams using editors other than VS Code without Debug Adapter Protocol integration
  • Projects locked into Dune versions below 3.7 that cannot update due to legacy constraints
  • Developers needing advanced debugging features like memory inspection or multi-threaded debugging, which aren't covered
  • Simple OCaml scripts or one-off programs where command-line tools like ocamldebug are sufficient

Pros & Cons

Pros

Standardized Debugging Protocol

Implements the Debug Adapter Protocol for editor-agnostic support, ensuring a consistent debugging experience across tools, as highlighted in the philosophy.

Seamless VS Code Integration

Directly integrates with the VSCode OCaml Platform extension, providing a native debugging interface with breakpoints and stepping, as shown in the usage section.

Flexible Launch Configuration

Supports configurable program arguments, environment variables, working directories, and breakpoint settings, detailed in the configuration table for tailored debug sessions.

Fork Process Management

Offers followForkMode to control whether to debug child or parent processes, useful for complex OCaml applications with forking behavior.

Cons

VS Code Dependency

Primarily designed for VS Code via the OCaml Platform extension, limiting usability in other editors without additional setup or community support.

Dune Version Constraints

Breakpoints require Dune 3.7 or above with specific workspace settings, as noted in troubleshooting, which can block adoption in older projects.

Experimental Status

Marked as experimental in the VS Code extension documentation, indicating potential instability or incomplete feature support compared to mature debuggers.

Frequently Asked Questions

Quick Stats

Stars236
Forks26
Contributors0
Open Issues23
Last commit29 days ago
CreatedSince 2018

Tags

#vscode-extension#editor-integration#debug-adapter#program-analysis#development-tools#debug-adapter-protocol#debugger#debugging#ocaml

Built With

O
OPAM
O
OCaml

Included in

OCaml3.1k
Auto-fetched 1 day ago

Related Projects

merlinmerlin

Context sensitive completion for OCaml in Vim and Emacs

Stars1,690
Forks251
Last commit2 days ago
utoputop

Universal toplevel for OCaml

Stars920
Forks121
Last commit1 month ago
ocaml-lspocaml-lsp

OCaml Language Server Protocol implementation

Stars899
Forks155
Last commit8 days ago
ocamlformatocamlformat

Auto-formatter for OCaml code

Stars717
Forks220
Last commit5 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub