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 PAA29096; Fri, 21 Nov 2003 15:22:30 +0100 (MET) 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 PAA29325 for ; Fri, 21 Nov 2003 15:22:28 +0100 (MET) Received: from smtp.siren.ocn.ne.jp (siren.ocn.ne.jp [211.129.13.170]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hALEMO113992 for ; Fri, 21 Nov 2003 15:22:26 +0100 (MET) Received: from PWARP (p2014-ipad07kyoto.kyoto.ocn.ne.jp [221.189.193.14]) by smtp.siren.ocn.ne.jp (Postfix) with SMTP id 492AA2399; Fri, 21 Nov 2003 23:22:20 +0900 (JST) Message-ID: <0f3901c3b03a$ddffdab0$0274a8c0@PWARP> From: "Nicolas Cannasse" To: "Christian Schaller" , "Artem Prisyznuk" Cc: References: Subject: Re: [Caml-list] exceptions Date: Fri, 21 Nov 2003 23:22:14 +0900 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; cannasse:01 warplayer:01 caml-list:01 backtrace:01 stderr:01 ocamlc:01 pervasives:01 1086:99 foo:01 3.06.:01 foo:01 cannasse:01 ocaml:01 nicolas:01 nicolas:01 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > 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 > > This doesn't work for me :( I compile with ocamlc -g. After starting > the program, I get > > Fatal error: exception Failure("nth") > Raised at module Pervasives, character 1086 > Called from module Foo, character 2711 > . > . > . > > What am I doing wrong? My ocaml is version 3.06. You should upgrade to 3.07, the line number printing have been added recently. You can still go to the character 2711 of your module Foo... Nicolas Cannasse ------------------- 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