From: Jake Donham <jake@donham.org>
To: "C. Fr" <newsgroups.fr@gmail.com>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Backtracting exceptions in toplevel
Date: Mon, 29 Mar 2010 15:45:55 -0700 [thread overview]
Message-ID: <c7e4e9f1003291545k67237b54v23164b7fbd1cb7b6@mail.gmail.com> (raw)
In-Reply-To: <4bb0fc46.11b38c0a.3fb3.7cee@mx.google.com>
On Mon, Mar 29, 2010 at 12:15 PM, C. Fr <newsgroups.fr@gmail.com> wrote:
> It there a way to get a backtrace for exceptions occurring in the toplevel
> (for example, getting more information when the stack blows)? I’ve read that
> there was an equivalent of the -b option that ocamlrun uses, but I couldn’t
> find any subsequent information on it.
In 3.11.x there is Printexc.record_backtrace which controls the -b
flag, and Printexc.get_backtrace to get the trace of the last
exception.
If you want to see backtraces printed automatically in the toplevel,
try my patch:
http://ambassadortothecomputers.blogspot.com/2010/03/updated-backtrace-patch.html
Jake
prev parent reply other threads:[~2010-03-29 22:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <AcrPdCfVEZxg80SNSyKrkuUzJ6BqJg==>
2010-03-29 19:15 ` C. Fr
2010-03-29 20:58 ` [Caml-list] " Yoann Padioleau
2010-03-29 22:45 ` Jake Donham [this message]
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=c7e4e9f1003291545k67237b54v23164b7fbd1cb7b6@mail.gmail.com \
--to=jake@donham.org \
--cc=caml-list@yquem.inria.fr \
--cc=newsgroups.fr@gmail.com \
/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