Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Artem Prisyznuk <tema@sit.kiev.ua>
To: Christian Schaller <Christian.Schaller@siemens.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] exceptions
Date: Thu, 20 Nov 2003 19:05:52 +0200	[thread overview]
Message-ID: <opryx4f2x5afbmjd@uaapc442> (raw)
In-Reply-To: <A1364BC6814D92479D4EED572D6F6FD81C4D88@uranus.certw2k.net>

On Thu, 20 Nov 2003 17:20:54 +0100, Christian Schaller 
<Christian.Schaller@siemens.com> wrote:


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

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

PS: this work only for bytecode compiler.


-- 
Artem Prysyznuk
tema@sit.kiev.ua

-------------------
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-20 17:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]
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
2003-11-21 14:27 ` 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=opryx4f2x5afbmjd@uaapc442 \
    --to=tema@sit.kiev.ua \
    --cc=Christian.Schaller@siemens.com \
    --cc=caml-list@inria.fr \
    /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