Olabldebug on classes?

From: John Whitley (whitley@cse.buffalo.edu)
Date: Mon Feb 22 1999 - 07:54:20 MET


From: John Whitley <whitley@cse.buffalo.edu>
Date: Mon, 22 Feb 1999 01:54:20 -0500 (EST)
To: caml-list@inria.fr
Subject: Olabldebug on classes?

Hello all,

Perhaps I am simply being a bit slow today, but I cannot seem to get
olabldebug to print/display class instance variables, mutable or
otherwise.

Consider the code example below. When the debugger is stopped at
method bal, the commands "print bar" and "print baz" only produce the
"Unbound identifier" error message. I can print parameters to invoked
methods, but that's about it.

So how does one apply the debugger to classes?

Thanks much,
John

--cut here--------------------------------------
(* test main file *)

class foo n =
object
  val bar = n
  val mutable baz = 1
  method bal = baz <- baz*bar
end

let test = new foo 2

let _ =
  for i = 1 to 20 do
    test#bal
  done

--cut here--------------------------------------



This archive was generated by hypermail 2b29 : Sun Jan 02 2000 - 11:58:20 MET