From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA18145; Fri, 27 Jul 2001 10:22:01 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA18132 for ; Fri, 27 Jul 2001 10:22:00 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f6R8Lxf21122; Fri, 27 Jul 2001 10:21:59 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id KAA18129; Fri, 27 Jul 2001 10:21:59 +0200 (MET DST) Date: Fri, 27 Jul 2001 10:21:59 +0200 From: Xavier Leroy To: David Mentre Cc: caml-list@inria.fr Subject: Re: [Caml-list] Finding how and where an exception is raised Message-ID: <20010727102159.A17912@pauillac.inria.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from David.Mentre@inria.fr on Thu, Jul 19, 2001 at 03:47:08PM +0200 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > I would like to find how and where an exception is raised by printing a > stack backtrace (something like Java Throwable.printStackTrace()). > > It seems to be impossible in plain ocaml. I could set the environment > variable OCAMLRUNPARAM="b=1" and let the exception escape the program, > but I would only get one exception. Right. I think the "stack backtrace" mechanism of OCaml could be extended to provide what you need. I'll look into this after 3.02 is out. Best wishes, - Xavier Leroy ------------------- 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