Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
debugging techniques?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Hendrik Tews <tews@t...>
Subject: Re: "ocaml_beginners"::[] debugging techniques?
Yamagata Yoriyuki writes:

Set "OCAMLRUNPARAM" environmental variable to include "b" option.
Then, the bytecode program prints the stack trace when it is stopped
by an uncaught exception. 

And use ocamlerror (see OCaml Humps or to translate the character
numbers in the backtrace into line numbers.

(But, in my experience, sometimes the debugger goes to the wrong
position when doing backward execution. Does anybody know whether the
backward execution is always accurate?)

I used backward execution quite a bit (under linux and other
unixes). I had never the expression that it is not accurate.