Skip to content
This repository was archived by the owner on Feb 27, 2025. It is now read-only.
This repository was archived by the owner on Feb 27, 2025. It is now read-only.

"unknown C primitive unix_has_symlink" error in VSCode debugger #106

@ewan-delanoy

Description

@ewan-delanoy

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.

visual

$ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions