hackwaly / vscode-ocaml

An extension for VS Code which provides support for the OCaml language.
MIT License
170 stars 26 forks source link

(VS code) I can't run Ocaml program #116

Open safker opened 7 years ago

safker commented 7 years ago

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.

hackwaly commented 7 years ago

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

safker commented 7 years ago

image

Adding semi colon : image

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

hackwaly commented 7 years ago

Please use debugger like this:

JigaoLuo commented 6 years ago

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?

yannl35133 commented 6 years ago

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.