Debugger support for OCaml

In real world ocaml. it mentions the GDB support for Ocaml native.
https://dev.realworldocaml.org/compiler-backend.html

I am testing to use GDB to debug one of my hobby projects in ocaml.

As described in real world ocaml, it is possible to set breakpoints on function (though the function names are mangled, it is very easy to recognize them), and step through it.

However, I can’t figure out how to print the value of local variables. Simply using gdb p, or info locals will show that the variables are not in context, or no locals…