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 PAA29080; Fri, 21 Nov 2003 15:21:49 +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 PAA29038 for ; Fri, 21 Nov 2003 15:21:48 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id hALELe113433; Fri, 21 Nov 2003 15:21:44 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA29216; Fri, 21 Nov 2003 15:21:39 +0100 (MET) Date: Fri, 21 Nov 2003 15:21:39 +0100 From: Xavier Leroy To: Christian Schaller Cc: caml-list@inria.fr Subject: Re: [Caml-list] exceptions Message-ID: <20031121152139.A28546@pauillac.inria.fr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from Christian.Schaller@siemens.com on Fri, Nov 21, 2003 at 03:06:19PM +0100 X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 ocamlc:01 pervasives:01 1086:99 foo:01 3.06.:01 3.07:01 backtraces:01 3.06:01 m-x:01 ocaml:01 compile:02 exception:02 exception:02 module:03 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > > 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 need 3.07 to get file names and line numbers in backtraces. In 3.06 and earlier, M-x goto-char is your friend... - Xavier Leroy ------------------- 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