caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: 沈胜宇 <syshen@nudt.edu.cn>
To: "Malcolm Matalka" <mmatalka@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: Re: [Caml-list] :: how to locate the source of exception
Date: Thu, 24 Jan 2013 21:48:29 +0800 (GMT+08:00)	[thread overview]
Message-ID: <420433c6.3f5.13c6cd11d8d.Coremail.syshen@nudt.edu.cn> (raw)
In-Reply-To: <87boce7md8.fsf@li195-236.members.linode.com>

Dear Matalka:

I got the trace by following you method, thank you for your help

Shen


> -----原始邮件-----
> 发件人: "Malcolm Matalka" <mmatalka@gmail.com>
> 发送时间: 2013-01-24 21:15:47 (星期四)
> 收件人: "沈胜宇" <syshen@nudt.edu.cn>
> 抄送: caml-list@inria.fr
> 主题: Re: [Caml-list] :: how to locate the source of exception
> 
> Run with backtraces on.  I think this requires bytecode but I can't
> remember:
> 
> http://stackoverflow.com/questions/145880/how-do-i-get-a-stack-trace-in-ocaml
> 
> 沈胜宇 <syshen@nudt.edu.cn> writes:
> 
> > Dear all:
> >
> >
> > My program written in ocaml terminate with the following output:
> >
> >
> > Fatal error: exception Invalid_argument("index out of bounds")
> >
> >
> >
> >
> > So how should I find out the lcoation in source code that raise this exception?
> >
> >
> > Shen


      parent reply	other threads:[~2013-01-24 13:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-24 12:14 沈胜宇
2013-01-24 12:20 ` Philippe Veber
2013-01-24 12:30   ` François Pessaux
2013-01-24 13:46   ` 沈胜宇
2013-01-24 13:15 ` Malcolm Matalka
2013-01-24 13:29   ` Török Edwin
2013-01-24 13:52     ` Daniel Bünzli
2013-01-24 13:48   ` 沈胜宇 [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=420433c6.3f5.13c6cd11d8d.Coremail.syshen@nudt.edu.cn \
    --to=syshen@nudt.edu.cn \
    --cc=caml-list@inria.fr \
    --cc=mmatalka@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;
as well as URLs for NNTP newsgroup(s).