hackwaly / ocamlearlybird

OCaml debug adapter
MIT License
208 stars 23 forks source link

Where ocamldebug is launched? #13

Closed db4 closed 5 years ago

db4 commented 5 years ago

I've just started to play with this with no success yet (maybe this is due to Windows platform I use). So excuse me for a dumb question: where ocamldebug program is launched? I don't see any mention of it in the sources.

hackwaly commented 5 years ago

It doesn't use ocamldebug as backend. It use ocaml debug socket as protocol to interact with ocaml vm.

BTW: Windows and WSL supports are not planed since I have not enough time to work on this project.

db4 commented 5 years ago

It doesn't use ocamldebug as backend. It use ocaml debug socket as protocol to interact with ocaml vm.

I see, you've borrowed some code from ocamldebug sources. It's brave decision because you'll have to track ocamldebug fixes/changes (if any).

BTW: Windows and WSL supports are not planed since I have not enough time to work on this project.

That's a pity. vscode-ocaml has Windows support, but it's deprecated in favour of this extension that even doesn't plan such support. OK, I could try add it, but if you "have not enough time to work on this project", isn't it going to be deprecated soon as well?

hackwaly commented 5 years ago

No, It won't deprecated soon unless there is a mature solution other than ocamlearlybird.

It use this interface https://github.com/ocaml/ocaml/blob/trunk/runtime/caml/debugger.h. It's stable enough.