hackwaly / ocamlearlybird

OCaml debug adapter
MIT License
208 stars 23 forks source link

"Goto Closure Code Location" sometimes fails #62

Open sim642 opened 6 months ago

sim642 commented 6 months ago

When debugging this program:

let add x y =
  x + y

let hello name =
  let f = add 1 in
  let text = Format.sprintf "Hello, %s (%d)!" name (f 42) in
  print_endline text

let () = hello "world"

Inside hello, add is listed under "Heap" variables, but "Goto Closure Code Location" for it gives a "No closure code location" error. It's not entirely broken though, because it works for Stdlib things under "Global" variables at least.

hackwaly commented 6 months ago

This bug mostly like comes from upstream