From: "Denis Bueno" <dbueno@gmail.com>
To: "OCaml Mailing List" <caml-list@inria.fr>
Subject: Exception backtraces
Date: Mon, 22 Jan 2007 21:54:30 -0500 [thread overview]
Message-ID: <6dbd4d000701221854v1fa172a9k59c0023e382fb2a7@mail.gmail.com> (raw)
I found some > 6 year old threads on this list
(http://caml.inria.fr/pub/ml-archives/caml-list/2000/07/5a1aa1b9873679a2bf87fce5c55f342f.en.html)
having to do with the fact that you couldn't get backtraces on caught
exceptions without using camlp4.
Is this still the case?
I'm using a unit testing framework, and it catches thrown exceptions
and uses Printexc.print to print out the exception. However, this
omits the most useful piece of information: the source line that threw
the exception. Is there anyway to get there, short of setting
OCAMLRUNPARAM="b" and letting it propagate to the source level (or
using the debugger)?
Thanks in advance.
-Denis
next reply other threads:[~2007-01-23 2:54 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-23 2:54 Denis Bueno [this message]
2007-01-24 21:53 ` [Caml-list] " Ingo Bormuth
2007-01-25 2:32 ` Denis Bueno
2007-01-25 2:47 ` Jon Harrop
2007-01-25 4:57 ` Denis Bueno
2007-01-25 22:37 ` Jan Rehders
2007-01-25 3:31 ` Erik de Castro Lopo
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=6dbd4d000701221854v1fa172a9k59c0023e382fb2a7@mail.gmail.com \
--to=dbueno@gmail.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;
as well as URLs for NNTP newsgroup(s).