OcaIDE
OcaIDE copied to clipboard
debugging: locating source modules does not work.
the debugger cannot find the values defined in an included module in the same directory.
main.ml
let sq x = x * x;;
run.ml
open Main open Printf
let _ = let _ = print_endline (sprintf "the square of 3 is not %d" (sq 4)) in print_endline "something else"
now compile main.d.byte, run.d.byte, start a debug run of run.d.byte, place a breakpoint in the last line of run.ml and hover the mouse over the "sq" call.
result: "Cannot find module Main. "
was this supposed to be fixed recently?