Browse thread
Re: [Caml-list] OCAMLRUNPARAM and backtraces
- Patrick M Doane
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: | 2001-09-15 (05:10) |
From: | Patrick M Doane <patrick@w...> |
Subject: | Re: [Caml-list] OCAMLRUNPARAM and backtraces |
I should have mentioned that I'm only trying this on bytecode. Here's a concrete example: except.ml: let f () = failwith "test" let main () = f () ;; main () % ocamlc except.ml % ./a.out Fatal error: uncaught exception Failure("test") % setenv OCAMLRUNPARAM "b=1" % ./a.out Fatal error: uncaught exception Failure("test") % On Sat, 15 Sep 2001, Christian Lindig wrote: > > % setenv OCAMLRUNPARAM "b=1" > > > > but I've never seen a backtrace print out for uncaught exceptions. I > > assume that others can get this working since I've seen outputs from it on > > the list, so I must be missing something obvious. > > The environment variable looks ok. Stack traces only work with the > byte code interpreter. You also must not catch the exception using > Printexec.to_string. Otherwise I have no idea. > > -- Christian ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr