caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Nicolas Cannasse" <warplayer@free.fr>
To: "Christian Schaller" <Christian.Schaller@siemens.com>,
	"Artem Prisyznuk" <tema@sit.kiev.ua>
Cc: <caml-list@inria.fr>
Subject: Re: [Caml-list] exceptions
Date: Fri, 21 Nov 2003 23:22:14 +0900	[thread overview]
Message-ID: <0f3901c3b03a$ddffdab0$0274a8c0@PWARP> (raw)
In-Reply-To: <A1364BC6814D92479D4EED572D6F6FD81C4D91@uranus.certw2k.net>

> 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


  parent reply	other threads:[~2003-11-21 14:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-21 14:06 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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='0f3901c3b03a$ddffdab0$0274a8c0@PWARP' \
    --to=warplayer@free.fr \
    --cc=Christian.Schaller@siemens.com \
    --cc=caml-list@inria.fr \
    --cc=tema@sit.kiev.ua \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).