How to pass commandline arguments to an ocaml program when debugging using the VSCode Ocamlearlybird extension? #1362
-
I followed the tutorial at https://github.com/ocamllabs/vscode-ocaml-platform/#debugging-ocaml-programs-experimental and managed to get ocamlearlybird up and running. However, I cannot figure out how to pass commandline arguments to the program being debugged. I tried adding the "args" property to the launch.json configuration file, to no avail. In fact, there was a hover text which informed me that "Property args is not allowed". I also tried adding the arguments directly after the program executable in the "program" property of the configuration. That caused a "Unix.Unix_error" when launching the debug. That seemed to be an error in parsing the config json. I'm sure there must be straightforward way to do this. I'll be grateful if someone points me in the right direction. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found out that the |
Beta Was this translation helpful? Give feedback.
Found out that the
arguments
property does what I want! Silly me.