Version française
Home     About     Download     Resources     Contact us    
Browse thread
Ocaml compiler features
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Pierre Etchemaïté <petchema@c...>
Subject: Re: [Caml-list] native-code stack backtraces (was: Ocaml compiler features)
	Hi,

Le Sun, 21 Jan 2007 18:07:04 +0100, Xavier Leroy <Xavier.Leroy@inria.fr> a écrit :

> You'll be pleased to
> learn that I've been working recently on exception backtraces for
> ocamlopt.  The code (nearly finished) currently sits in the
> "opt_backtrace" branch of the repository and should be part of
> release 3.10.

Now, that's an excellent news!

Will backtraces  still be only available to uncaught exceptions ?
Sometimes it'd be useful to have backtraces in other cases, to
understand what's going on.

Not to get backtraces for all exceptions! Since exceptions have many
uses in OCaml, that would be uselessly painful :)

But maybe something like Printexc.to_string_with_backtrace (or
Printexec.to_string ~backtrace:true ?), so that debugging code could
decide to report, or log, backtraces of chosen exceptions...

Best regards,
Pierre.