From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=AWL,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 05556BC0B for ; Tue, 23 Jan 2007 03:54:33 +0100 (CET) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.235]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l0N2sWL0008141 for ; Tue, 23 Jan 2007 03:54:32 +0100 Received: by wr-out-0506.google.com with SMTP id 68so778114wri for ; Mon, 22 Jan 2007 18:54:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=s74llRQmjlSUkVhiZK+1LiMrXRYR4eAxMj1PwRvUdPWyj97KA19YFPGCqlzkGxa+ZDLw1PBefxj/HsOk8j0FFH99TP0ELWpLOQ7qwlFjOoxvbIrzayOCUaSvUHVj1bcv9J8LpfrisZZaTS5cVfMBh4ClKaK2grSM0RWVsH0SnhY= Received: by 10.78.118.19 with SMTP id q19mr76843huc.1169520870692; Mon, 22 Jan 2007 18:54:30 -0800 (PST) Received: by 10.78.100.6 with HTTP; Mon, 22 Jan 2007 18:54:30 -0800 (PST) Message-ID: <6dbd4d000701221854v1fa172a9k59c0023e382fb2a7@mail.gmail.com> Date: Mon, 22 Jan 2007 21:54:30 -0500 From: "Denis Bueno" To: "OCaml Mailing List" Subject: Exception backtraces MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-j-chkmail-Score: MSGID : 45B578E8.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 45B578E8.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; threads:01 camlp:01 printexc:01 debugger:01 exception:01 exception:01 caml-list:01 exceptions:01 exceptions:01 short:01 caml:02 unit:03 anyway:06 inria:06 uses:06 I found some > 6 year old threads on this list (http://caml.inria.fr/pub/ml-archives/caml-list/2000/07/5a1aa1b9873679a2bf87fce5c55f342f.en.html) having to do with the fact that you couldn't get backtraces on caught exceptions without using camlp4. Is this still the case? I'm using a unit testing framework, and it catches thrown exceptions and uses Printexc.print to print out the exception. However, this omits the most useful piece of information: the source line that threw the exception. Is there anyway to get there, short of setting OCAMLRUNPARAM="b" and letting it propagate to the source level (or using the debugger)? Thanks in advance. -Denis