<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2003/11/a8804bd2fcdd1afc87716c960d854e6f"
  from="Nicolas Cannasse &lt;warplayer@f...&gt;"
  author="Nicolas Cannasse"
  date="2003-11-21T14:22:30"
  subject="Re: [Caml-list] exceptions"
  prev="2003/11/f2a734a210920bee1d5c93213738f959"
  next="2003/11/baf232ade3110026828179f0492dc317"
  prev-in-thread="2003/11/f2a734a210920bee1d5c93213738f959"
  next-in-thread="2003/11/baf232ade3110026828179f0492dc317"
  prev-thread="2003/11/ac68477a0da5d7dbb8ba9e0bbe74e550"
  next-thread="2003/11/9530be7daad00b27b3dfea45d1b6857f"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="RE: [Caml-list] exceptions">
<msg 
  url="2003/11/f2a734a210920bee1d5c93213738f959"
  from="Christian Schaller &lt;Christian.Schaller@s...&gt;"
  author="Christian Schaller"
  date="2003-11-21T14:06:23"
  subject="RE: [Caml-list] exceptions">
<msg 
  url="2003/11/a8804bd2fcdd1afc87716c960d854e6f"
  from="Nicolas Cannasse &lt;warplayer@f...&gt;"
  author="Nicolas Cannasse"
  date="2003-11-21T14:22:30"
  subject="Re: [Caml-list] exceptions">
</msg>
<msg 
  url="2003/11/baf232ade3110026828179f0492dc317"
  from="Xavier Leroy &lt;xavier.leroy@i...&gt;"
  author="Xavier Leroy"
  date="2003-11-21T14:21:49"
  subject="Re: [Caml-list] exceptions">
<msg 
  url="2003/11/c40521a1c7e02dfb43a5991a61d4da8f"
  from="skaller &lt;skaller@o...&gt;"
  author="skaller"
  date="2003-11-21T17:32:54"
  subject="Re: [Caml-list] exceptions">
</msg>
<msg 
  url="2003/11/17b2e1ef3ebca92a81629ad8bdd727cc"
  from="Issac Trotts &lt;ijtrotts@c...&gt;"
  author="Issac Trotts"
  date="2003-11-21T21:52:39"
  subject="Re: [Caml-list] exceptions">
<msg 
  url="2003/11/46ea3589d5d0e286856c16c29dc2c525"
  from="Dustin Sallings &lt;dustin@s...&gt;"
  author="Dustin Sallings"
  date="2003-11-21T22:36:03"
  subject="Re: [Caml-list] exceptions">
</msg>
</msg>
</msg>
<msg 
  url="2003/11/6c043ff146c932e1e9f2f15e54ea3312"
  from="Artem Prisyznuk &lt;tema@s...&gt;"
  author="Artem Prisyznuk"
  date="2003-11-21T14:27:39"
  subject="Re: [Caml-list] exceptions">
</msg>
</msg>
</thread>

<contents>
&gt; Compile and link your program with -g. After that say
&gt;
&gt; $ export OCAMLRUNPARAM=b
&gt;
&gt; Run your program. If uncaught exception raised backtrace log
&gt; will be print
&gt; on your stderr:
&gt;
&gt; Fatal error: exception Not_found
&gt; Raised at file "test.ml", line 1, character 15
&gt;
&gt; This doesn't work for me :(  I compile with ocamlc -g.  After starting
&gt; the program, I get
&gt;
&gt; Fatal error: exception Failure("nth")
&gt; Raised at module Pervasives, character 1086
&gt; Called from module Foo, character 2711
&gt;  .
&gt;   .
&gt;  .
&gt;
&gt; What am I doing wrong?  My ocaml is version 3.06.

You should upgrade to 3.07, the line number printing have been added
recently.
You can still go to the character 2711 of your module Foo...

Nicolas Cannasse

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

