[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dape 49260071c2: Add OCaml support with ocamlearlybird
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dape 49260071c2: Add OCaml support with ocamlearlybird |
Date: |
Sun, 18 Aug 2024 15:57:50 -0400 (EDT) |
branch: externals/dape
commit 49260071c2e7fd83bfe70b4b7f42d796c9e6240b
Author: Daniel Pettersson <daniel@dpettersson.net>
Commit: Daniel Pettersson <daniel@dpettersson.net>
Add OCaml support with ocamlearlybird
---
README.org | 6 ++++++
dape.el | 16 ++++++++++++++++
2 files changed, 22 insertions(+)
diff --git a/README.org b/README.org
index 7c60d343f2..2ed364d04f 100644
--- a/README.org
+++ b/README.org
@@ -174,6 +174,12 @@ Extend ~eglot-server-programs~ as follows to have JDTLS
load the plugin:
3. Download latest =vsix=
[[https://github.com/xdebug/vscode-php-debug/releases][release]] of DAP adapter
for =Xdebug= =php-debug-<version>.vsix=
4. Unpack ~mkdir -p ~/.emacs.d/debug-adapters && unzip
php-debug-<version>.vsix -d ~/.emacs.d/debug-adapters/php-debug~
+** OCaml - ocamlearlybird
+Install with ~opam install earlybird~.
+1. Point =:program= to bytecode file
+2. Place breakpoints inside of =_build/default/*=
+
+See [[https://github.com/hackwaly/ocamlearlybird][ocamlearlybird]] for more
information.
** Other untested adapters
If you find a working configuration for any other debug adapter please submit
a PR.
diff --git a/dape.el b/dape.el
index cda9d7e56f..3fe390dcf5 100644
--- a/dape.el
+++ b/dape.el
@@ -306,6 +306,22 @@
".dll"
(dape-cwd))))
:stopAtEntry nil)
+ (ocamlearlybird
+ ensure dape-ensure-command
+ modes (tuareg-mode caml-mode)
+ command "ocamlearlybird"
+ command-args ("debug")
+ :type "ocaml"
+ :program (lambda ()
+ (file-name-concat
+ (dape-cwd)
+ "_build" "default" "bin"
+ (concat
+ (file-name-base (dape-buffer-default))
+ ".bc")))
+ :console "internalConsole"
+ :stopOnEntry nil
+ :arguments [])
(rdbg
modes (ruby-mode ruby-ts-mode)
ensure dape-ensure-command
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/dape 49260071c2: Add OCaml support with ocamlearlybird,
ELPA Syncer <=