Dear Shen,

you can run your program in bytecode setting the OCAMLRUNPARAM correctly and you'll see the whole backtrace, like in

OCAMLRUNPARAM=b ./myprogram

hope this helps,
  Philippe.


2013/1/24 沈胜宇 <syshen@nudt.edu.cn>
Dear all:

My program written in ocaml terminate with the following output:

Fatal error: exception Invalid_argument("index out of bounds")


So how should I find out the lcoation in source code that raise this exception?

Shen