I was tweaking the configuration for 'sharpbangscripts' on a Debian linux box. What I want to do is the disable the generation of sharp-bang line in the ocaml bytecode. By setting the bit to false in makefile it seems to do the trick. However, this change breaks ocamldebug.
% ocamldebug hello.d.byte # It does not debug, instead just run the program
hello ocaml world!
If I invoke ocamlrun before ocamldebug, it does not recognize the third argument.
% ocamlrun ocamldebug hello.d.byte
Objective Caml Debugger version 3.12.1
(ocd) r
Loading program... No bytecode file specified.
I suspect that the argument was lost in the call chain because this error is from the ocamlrun invoked from ocamldebug. Could someone help to look into it? Thanks.
--
---------------
Zhi Han