Version française
Home     About     Download     Resources     Contact us    
Browse thread
RE: [Caml-list] exceptions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Nicolas Cannasse <warplayer@f...>
Subject: Re: [Caml-list] exceptions
> 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