package earlybird
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=cc9abe42e6ee8b59f788fb59198125447ba14e68ab52317806bb3252fa11a6cc
sha512=04414670ce66d6d3433fb73737a0a3a04a64484a9b396037aff201c04f05be874ec04fe6b1d8cbf910959e2af6c3b2ace4aacb7479fbd714ec53d6e256f8d9e3
doc/README.html
OCaml earlybird
OCaml debug adapter.
Installation
opam install earlybirdUsage
VS Code
See Debugging OCaml programs (experimental) in VSCode OCaml Platform README. This requires VSCode OCaml Platform 1.13 or newer.
Configuration
Field | Type | Default value | Description |
|---|---|---|---|
|
| (required) | The path of debuggee program. |
|
|
| The command-line arguments for the debuggee program. |
|
| The working directory for debuggee program. | |
|
|
| Environment variables passed to the debuggee program. |
|
|
| Automatically stop after launch. |
|
|
| Where to launch the debug target: internal console, integrated terminal, or external terminal. |
|
|
| Set which process the debugger follows on fork. |
|
|
| The path to search sources. |
|
|
| Only debug sources which match |
|
|
| Max steps to execute in batch. Debugger can not response other requests when executing steps in batch. |
|
| File to Log debug messages. |
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}"
}
]
}