hackwaly / ocamlearlybird

OCaml debug adapter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

... make sure ocamlearlybird in your PATH.

PavelKotov1 opened this issue · comments

Hello, dear friends!
I apologize in advance for such a silly question, but i am comming from windows world and simply do not know linux well enough:
Question: how to add ocamlearlybird in my PATH?
Do i add the executable files themselves OR symlinks to the executable?
And what are the names of executable of ocamlearlybird? What exactly do i "export"?
I did "locate earlybird" and it gave my pages of names...
If possible be very specific, please.
Thanks in advance!

If you are using window. I recommend you to use WSL2 to get linux env.

no, i am not using windows, i am using ubuntu 20.04.
So my question is how to add ocamlearlybird to PATH on ubuntu?

You just need to setup opam properly. Then use opam to install earlybird.

Then looks like i am all set. Thanks a lot!

ok, one more question, hope you do not mind:
When i follow your example https://imgur.com/U3GDHXM, everything works fine:
I click on test_program.bc, select "Start an Ocaml debug session", and the execution goes into the stdlib.ml.
How do i put a breakpoint into the test_program.ml and step through its the source code? Because i would like to learn ocaml source code debugging.
Thanks in advance!

Just look at the loaded modules in vscode's debug pannel. You can set breakpoints in those files there.

Well, that's the problem: i set up the breakpoints in test_program.ml, but they are never hit.
How do i direct execution into test_program.ml file? If i open it separately, it just sits there and the execution keeps running in the libraries...

Press "run"

ok, sorry for the delay! I finally figure it out and everything works now!
There are so many pieces to this puzzle and even the smallest one breaks it if you get it wrong. My problem was launch.json file, which needed to be set correctly.
So, thans again for the great tool, guys!
RESPECT!