Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] exceptions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Artem Prisyznuk <tema@s...>
Subject: Re: [Caml-list] exceptions
On Thu, 20 Nov 2003 17:20:54 +0100, Christian Schaller 
<> wrote:

> Is there any way to get more details regarding exceptions?  Whenever my
> program raises an exception, it doesn't display the line that raised it.

Compile and link your program with -g. After that say


Run your program. If uncaught exception raised backtrace log will be print 
on your stderr:

Fatal error: exception Not_found
Raised at file "", line 1, character 15

PS: this work only for bytecode compiler.

Artem Prysyznuk

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: