hackwaly / ocamlearlybird

OCaml debug adapter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Goto Closure Code Location" sometimes fails

sim642 opened this issue · comments

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.

This bug mostly like comes from upstream