From: Xavier Leroy <xavier.leroy@inria.fr>
To: Christian Schaller <Christian.Schaller@siemens.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] exceptions
Date: Thu, 20 Nov 2003 17:38:02 +0100 [thread overview]
Message-ID: <20031120173802.C14255@pauillac.inria.fr> (raw)
In-Reply-To: <A1364BC6814D92479D4EED572D6F6FD81C4D88@uranus.certw2k.net>; from Christian.Schaller@siemens.com on Thu, Nov 20, 2003 at 05:20:54PM +0100
> 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?
This should be in the FAQ somewhere:
- Compile and link to bytecode with debugging info enabled ("ocamlc -g").
- Set the environment variable OCAMLRUNPARAMS to the value "b"
(as in "backtrace").
- Execute your program. Voila, nice stack backtrace with line numbers.
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
next prev parent reply other threads:[~2003-11-20 16:38 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 [this message]
2003-11-20 17:10 ` Artem Prisyznuk
2003-11-20 17:05 ` Artem Prisyznuk
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=20031120173802.C14255@pauillac.inria.fr \
--to=xavier.leroy@inria.fr \
--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