Version française
Home     About     Download     Resources     Contact us    
Browse thread
debugging in toplevel
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Guillaume Yziquel <guillaume.yziquel@c...>
Subject: debugging in toplevel
Hi.

I've been working on Yoann Padioleau's version of ocaml-python bindings.

I unfortunately get the following error:

> yziquel@seldon:~$ ocaml
>         Objective Caml version 3.11.1
> 
> # #use "topfind";;
> - : unit = ()
> Findlib has been successfully loaded. Additional directives:
>   #require "package";;      to load a package
>   #list;;                   to list the available packages
>   #camlp4o;;                to load camlp4 (standard syntax)
>   #camlp4r;;                to load camlp4 (revised syntax)
>   #predicates "p,q,...";;   to set these predicates
>   Topfind.reset();;         to force that packages will be reloaded
>   #thread;;                 to enable threads
> 
> - : unit = ()
> # #require "python";;
> /usr/lib/ocaml/unix.cma: loaded
> /usr/lib/ocaml/str.cma: loaded
> /usr/lib/ocaml/python: added to search path
> /usr/lib/ocaml/python/pycaml.cma: loaded
> Exception: Invalid_argument "index out of bounds".
> # 

How do you debug something like this? ocamldebug and #trace do not seem 
to be very useful. What would you recommend doing to debug this toplevel 
error?

-- 
      Guillaume Yziquel
http://yziquel.homelinux.org/