Skip to content

Commit

Permalink
Rewrite README
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Jul 11, 2023
1 parent dad752f commit 447d4be
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
32 changes: 19 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,34 @@
# ocamlearlybird
# OCaml earlybird

[![ci workflow status](https://github.com/hackwaly/ocamlearlybird/actions/workflows/ci.yml/badge.svg)](https://github.com/hackwaly/ocamlearlybird/actions/workflows/ci.yml)
[![GitHub release status](https://img.shields.io/github/v/release/hackwaly/ocamlearlybird)](https://github.com/hackwaly/ocamlearlybird/releases)
[![opam package status](https://badgen.net/opam/v/earlybird)](https://opam.ocaml.org/packages/earlybird)

## How to use
OCaml debug adapter.

1. Switch to ocaml 4.12+
2. Install earlybird and make sure ocamlearlybird in your PATH.
3. Install vscode extension hackwaly/ocamlearlybird
## Installation

## Quick debug
```console
opam install earlybird
```

You can select context menu "Start an OCaml Debug Session" on bytecode file in vscode explorer to quickly start an debug session.
## Usage

## Example
### VS Code

[Debug utop](https://i.imgur.com/U3GDHXM.gif)
See [Debugging OCaml programs (experimental)](https://github.com/ocamllabs/vscode-ocaml-platform#debugging-ocaml-programs-experimental) in VSCode OCaml Platform README.
This requires VSCode OCaml Platform 1.13 or newer.

## Example launch configuration
> PS. Since the integration into VSCode OCaml Platform, the old "Ocamlearlybird" VSCode extension is deprecated.
Used to debug utop examples.
## Examples

```
### utop

[Screen capture of debugging utop](https://i.imgur.com/U3GDHXM.gif).

Launch configuration used:
```json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
Expand All @@ -31,7 +37,7 @@ Used to debug utop examples.
"configurations": [
{
"name": "test_program",
"type": "ocamlearlybird",
"type": "ocaml.earlybird",
"request": "launch",
"stopOnEntry": true,
"console": "integratedTerminal",
Expand Down
2 changes: 1 addition & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

(package
(name earlybird)
(synopsis "Debug adapter for OCaml")
(synopsis "OCaml debug adapter")
(depends
(ocaml (and (>= 4.12.0) (< 5.1)))
(ppx_deriving (>= 5.1))
Expand Down
2 changes: 1 addition & 1 deletion earlybird.opam
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Debug adapter for OCaml"
synopsis: "OCaml debug adapter"
maintainer: ["Simmo Saan <simmo.saan@gmail.com>"]
authors: ["hackwaly@qq.com"]
license: "MIT"
Expand Down

0 comments on commit 447d4be

Please sign in to comment.