git clone https://github.com/hackwaly/ocamlearlybird.git
cd ocamlearlybird
git checkout 411
opam install .You can select context menu "Start an OCaml Debug Session" on bytecode file in vscode explorer to quickly start an debug session.
Used to debug utop examples.
{
// 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",
"request": "launch",
"stopOnEntry": true,
"console": "integratedTerminal",
"program": "${workspaceRoot}/_build/default/examples/interact/test_program.bc",
"onlyDebugGlob": "<${workspaceRoot}/_build/default/**/*>",
"yieldSteps": 1024,
"cwd": "${workspaceRoot}"
}
]
}