caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Philippe Veber <philippe.veber@gmail.com>
To: 沈胜宇 <syshen@nudt.edu.cn>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] :: how to locate the source of exception
Date: Thu, 24 Jan 2013 13:20:52 +0100	[thread overview]
Message-ID: <CAOOOohSOe2=R_Ze9AfxhzkhN6JjGJyxp3-9eLwwm8NkkwQaMWw@mail.gmail.com> (raw)
In-Reply-To: <24b397e9.3d7.13c6c7b5296.Coremail.syshen@nudt.edu.cn>

[-- Attachment #1: Type: text/plain, Size: 504 bytes --]

Dear Shen,

you can run your program in bytecode setting the OCAMLRUNPARAM correctly
and you'll see the whole backtrace, like in

OCAMLRUNPARAM=b ./myprogram

hope this helps,
  Philippe.


2013/1/24 沈胜宇 <syshen@nudt.edu.cn>

> 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
>

[-- Attachment #2: Type: text/html, Size: 876 bytes --]

  reply	other threads:[~2013-01-24 12:21 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 [this message]
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   ` 沈胜宇

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='CAOOOohSOe2=R_Ze9AfxhzkhN6JjGJyxp3-9eLwwm8NkkwQaMWw@mail.gmail.com' \
    --to=philippe.veber@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=syshen@nudt.edu.cn \
    /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).