From ee2c133e195e0326fcb5cecba723a5c12bdbba27 Mon Sep 17 00:00:00 2001 From: Federico Igne Date: Mon, 22 Jan 2024 23:40:16 +0100 Subject: build: enable debugging via 'ocamldebugger' and DAP --- bin/dune | 3 ++- dune-project | 4 ++++ flake.nix | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/dune b/bin/dune index d802869..87b4f4e 100644 --- a/bin/dune +++ b/bin/dune @@ -1,4 +1,5 @@ (executable (public_name sand) (name main) - (libraries sand)) + (libraries sand) + (modes exe byte)) diff --git a/dune-project b/dune-project index b7399d2..cc3ce88 100644 --- a/dune-project +++ b/dune-project @@ -4,6 +4,10 @@ (generate_opam_files true) +; Needed to generate correct debug information. +; See https://dune.readthedocs.io/en/stable/dune-files.html#stanza-map_workspace_root +(map_workspace_root false) + (source (github username/reponame)) diff --git a/flake.nix b/flake.nix index bcd9ed1..6fdf260 100644 --- a/flake.nix +++ b/flake.nix @@ -14,6 +14,7 @@ localPackagesQuery = builtins.mapAttrs (_: pkgs.lib.last) (on.listRepo (on.makeOpamRepo ./.)); devPackagesQuery = { + earlybird = "*"; ocaml-lsp-server = "*"; ocamlformat = "*"; utop = "*"; -- cgit v1.2.3