-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"unknown C primitive unix_has_symlink" error in VSCode debugger #106
Comments
Some more details then :
Did you do additional steps or did you some step differently ? Note : when I set stopOnEntry to true, I get the same error message, "Fatal error: unknown C primitive `unix_has_symlink'" but without the "Lost connection" part. |
No, I do debug as same as you |
I can provide my working project to you. Did you need it? |
What is your "working project" ? |
It seems that the problem comes from a version mismatch : see https://discuss.ocaml.org/t/unknown-c-primitive-unix-has-symlink-in-vscode-debugger/415/3 Perhaps the problem will disappear if you upgrade the debugger version inside VSCode |
Hello, this example has just one file called debugged.ml with only one breakpoint
to set in it, at line 6288.
The contents of debugged.ml are available at https://github.com/ewan-delanoy/hello-world/tree/master
Debugging outside VSCode works (terminal output below) but when I try to do it
inside VSCode I get a "unknown C primitive unix_has_symlink" error message.
$ ocamlc -g -bin-annot str.cma unix.cma debugged.ml -o debugged.ocaml_debuggable
$ ocamldebug debugged.ocaml_debuggable
OCaml Debugger version 4.04.1
(ocd) break @debugged 6288
Loading program... done.
Breakpoint 1 at 221080: file debugged.ml, line 6288, characters 38-76
(ocd) r
Time: 359853 - pc: 221080 - module Debugged
Breakpoint: 1
6288 let h2=Sc_option.find_really (fun x-><|b|>x.Sc_beaver_for_statement.name="echo2")
(ocd) q
Removed breakpoint 1 at 221080: file debugged.ml, line 6288, characters 38-76
The text was updated successfully, but these errors were encountered: