From: Patrick M Doane <patrick@watson.org>
To: Christian Lindig <lindig@eecs.harvard.edu>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] OCAMLRUNPARAM and backtraces
Date: Sat, 15 Sep 2001 01:10:18 -0400 (EDT) [thread overview]
Message-ID: <Pine.BSF.3.96.1010915010654.25152B-100000@fledge.watson.org> (raw)
In-Reply-To: <20010915004442.A10054@lakeland.eecs.harvard.edu>
I should have mentioned that I'm only trying this on bytecode. Here's
a concrete example:
except.ml:
let f () = failwith "test"
let main () = f ()
;;
main ()
% ocamlc except.ml
% ./a.out
Fatal error: uncaught exception Failure("test")
% setenv OCAMLRUNPARAM "b=1"
% ./a.out
Fatal error: uncaught exception Failure("test")
%
On Sat, 15 Sep 2001, Christian Lindig wrote:
> > % setenv OCAMLRUNPARAM "b=1"
> >
> > but I've never seen a backtrace print out for uncaught exceptions. I
> > assume that others can get this working since I've seen outputs from it on
> > the list, so I must be missing something obvious.
>
> The environment variable looks ok. Stack traces only work with the
> byte code interpreter. You also must not catch the exception using
> Printexec.to_string. Otherwise I have no idea.
>
> -- Christian
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
next parent reply other threads:[~2001-09-15 5:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20010915004442.A10054@lakeland.eecs.harvard.edu>
2001-09-15 5:10 ` Patrick M Doane [this message]
2001-09-15 3:42 Patrick M Doane
2001-09-15 8:15 ` Xavier Leroy
2001-09-15 21:16 ` Patrick M Doane
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=Pine.BSF.3.96.1010915010654.25152B-100000@fledge.watson.org \
--to=patrick@watson.org \
--cc=caml-list@inria.fr \
--cc=lindig@eecs.harvard.edu \
/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).