From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id IAA16009 for caml-redistribution@pauillac.inria.fr; Fri, 4 Feb 2000 08:48:36 +0100 (MET) Resent-Message-Id: <200002040748.IAA16009@pauillac.inria.fr> Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id TAA07234 for ; Thu, 3 Feb 2000 19:28:52 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.8.7/8.8.7) with ESMTP id TAA28109; Thu, 3 Feb 2000 19:28:50 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA21396; Thu, 3 Feb 2000 19:28:50 +0100 (MET) Message-ID: <20000203192850.19544@pauillac.inria.fr> Date: Thu, 3 Feb 2000 19:28:50 +0100 From: Xavier Leroy To: stratula@loria.fr, caml-list@inria.fr Subject: Re: - WHY ? References: <14479.17696.496132.380433@micutzu.loria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1 In-Reply-To: <14479.17696.496132.380433@micutzu.loria.fr>; from Sorin Stratulat on Wed, Jan 26, 2000 at 08:38:03PM +0100 Resent-From: weis@pauillac.inria.fr Resent-Date: Fri, 4 Feb 2000 08:48:36 +0100 Resent-To: caml-redistribution@pauillac.inria.fr > Unfortunately, I found > difficulties to convince the debugger to print objects. > 5. install the printer function my_print_point > (ocd) install_printer Essai_printer.my_print_point > 7. print my_p > (ocd) p my_p > my_p : point = User-defined printing functions run in the memory space of the debugger, which is distinct from that of the debugged program. Structued I/O (output_value/input_value) is used to communicate the value being printed between the two. Unfotunately, structured I/O is currently unable to deal with objects and functions, hence the error you've observed. > Can somebody tell me the "solution" to print the value "x" of my_p ? The only solution I can see right now is put a breakpoint in one of the methods of my_p's class; then, "x" is in scope and "print x" should show its value. - Xavier Leroy