hackwaly / vscode-ocaml-debugger

OCaml debugger for VS Code
14 stars 4 forks source link

launch.json configuration #1

Open joaosreis opened 6 years ago

joaosreis commented 6 years ago

How to configure launch.json?

hackwaly commented 6 years ago

See https://github.com/hackwaly/ocamlearlybird/blob/master/ocaml_debug_adapter/debug_protocol_ex.ml

JonathanMEdwards commented 5 years ago

An example would help

villesau commented 5 years ago

Here is an example for to launch debugger for Flow, feel free to use as an example:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "OCaml",
            "type": "ocaml-debugger",
            "request": "launch",
            "program": "${workspaceFolder}/bin/flow",
            "console": "internalConsole",
            "stopOnEntry": false,
            "arguments": ["check", "${workspaceFolder}/local-test/test.js", "--max-workers=0", "--verbose-indent"]
          }
    ]
}