package earlybird
OCaml debug adapter
Install
Dune Dependency
Authors
Maintainers
Sources
earlybird-1.3.0.tbz
sha256=166e2599cb3a42c6e1050893de788b89024f6b0f3c8487d651ef4a2b12deba11
sha512=ab3a836e5a5921a7a06b98215051c42ddebcdc98ff8ad7098b1eab602da871dcc18107437cee3b672ccbc5df49a22c3d0313fcc78ff08f3e80be7d08d44b5a3e
README.md.html
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}"
}
]
}
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>