vscode-ocaml icon indicating copy to clipboard operation
vscode-ocaml copied to clipboard

(VS code) I can't run Ocaml program

Open safker opened this issue 7 years ago • 5 comments

Hello, I've just install VS code on windows to program in Ocaml but i can't run. The debugger doesn't seem to work... I found this in a comment but i don't understand even when reading this https://marketplace.visualstudio.com/items?itemName=hackwaly.ocaml . I've tried to install opam but i think i didn't understand what i did. Please, can someone help me ? Thank you in advance, Saf.

safker avatar Sep 23 '17 16:09 safker

Please paste your screenshot here to explain how you can't use debugger.

hackwaly avatar Sep 24 '17 02:09 hackwaly

image

Adding semi colon : image

and sometimes i have this with code = 0 or code =2 image

safker avatar Sep 24 '17 07:09 safker

Please use debugger like this:

hackwaly avatar Sep 24 '17 09:09 hackwaly

Hi. I would like to ask about the possibility to run the ocaml. Is this a only way to run in the debugger model? Is it possible to run like what we do in other ide?

JigaoLuo avatar Jun 23 '18 07:06 JigaoLuo

I can't use the OCaml debugger either, can you be more precise on how to make it work ? I am using it on Windows, with OCaml installed through Cygwin. When I run the debugger after compiling my .ml file with ocamlc -g, it prints out two Syntax errors and doesn't stop at breakpoints, simply executing everything.

yannl35133 avatar Aug 16 '18 12:08 yannl35133