caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* RE: [Caml-list] exceptions
@ 2003-11-21 14:06 Christian Schaller
  2003-11-21 14:21 ` Xavier Leroy
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Christian Schaller @ 2003-11-21 14:06 UTC (permalink / raw)
  To: Artem Prisyznuk; +Cc: caml-list

> 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.

- Chris

-------------------
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


^ permalink raw reply	[flat|nested] 11+ messages in thread
* [Caml-list] exceptions
@ 2003-11-20 16:20 Christian Schaller
  2003-11-20 16:38 ` Xavier Leroy
  2003-11-20 17:05 ` Artem Prisyznuk
  0 siblings, 2 replies; 11+ messages in thread
From: Christian Schaller @ 2003-11-20 16:20 UTC (permalink / raw)
  To: caml-list

Hello,

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.

E.g. List.nth.  Say, I have several of these function calls.  How can I
tell which one got the wrong list or index?

TIA,
  Chris

-------------------
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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2003-11-21 22:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-21 14:06 [Caml-list] exceptions Christian Schaller
2003-11-21 14:21 ` Xavier Leroy
2003-11-21 16:32   ` skaller
2003-11-21 21:53   ` Issac Trotts
2003-11-21 22:35     ` Dustin Sallings
2003-11-21 14:22 ` Nicolas Cannasse
2003-11-21 14:27 ` Artem Prisyznuk
  -- strict thread matches above, loose matches on Subject: below --
2003-11-20 16:20 Christian Schaller
2003-11-20 16:38 ` Xavier Leroy
2003-11-20 17:10   ` Artem Prisyznuk
2003-11-20 17:05 ` Artem Prisyznuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).