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 SAA18027; Thu, 20 Nov 2003 18:05:44 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA17290 for ; Thu, 20 Nov 2003 18:05:43 +0100 (MET) Received: from megs23.100mwh.com ([205.214.86.13]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hAKH5g123567 for ; Thu, 20 Nov 2003 18:05:42 +0100 (MET) Received: from [205.214.86.158] (helo=uaapc442) by megs23.100mwh.com with asmtp (Exim 4.24) id 1AMsFM-0008BX-Ma; Thu, 20 Nov 2003 10:05:37 -0700 Cc: caml-list@inria.fr To: Christian Schaller Subject: Re: [Caml-list] exceptions References: Message-ID: From: Artem Prisyznuk Content-Type: text/plain; format=flowed; charset=koi8-r MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Thu, 20 Nov 2003 19:05:52 +0200 In-Reply-To: User-Agent: Opera7.22/Win32 M2 build 3221 X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - megs23.100mwh.com X-AntiAbuse: Original Domain - inria.fr X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - sit.kiev.ua X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 artem:01 schaller:01 schaller:01 backtrace:01 stderr:01 artem:01 compiler:01 bytecode:01 raises:01 nov:01 compile:02 exception:02 exception:02 uncaught:02 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Thu, 20 Nov 2003 17:20:54 +0100, Christian Schaller wrote: > Is there any way to get more details regarding exceptions? Whenever my > program raises an exception, it doesn't display the line that raised it. Compile and link your program with -g. After that say $ export OCAMLRUNPARAM=b Run your program. If uncaught exception raised backtrace log will be print on your stderr: Fatal error: exception Not_found Raised at file "test.ml", line 1, character 15 PS: this work only for bytecode compiler. -- Artem Prysyznuk tema@sit.kiev.ua ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners