From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA02295; Wed, 4 Feb 2004 15:59:53 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id PAA02169 for ; Wed, 4 Feb 2004 15:59:52 +0100 (MET) Received: from post.bourget.univ-savoie.fr (post.bourget.univ-savoie.fr [193.48.120.73]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id i14Expv06823 for ; Wed, 4 Feb 2004 15:59:51 +0100 (MET) Received: from univ-savoie.fr (d85.lama.univ-savoie.fr [193.48.123.85]) by post.bourget.univ-savoie.fr (8.12.3/jtpda-5.4) with ESMTP id i14F3xCh032081 for ; Wed, 4 Feb 2004 16:03:59 +0100 Message-ID: <402109F3.8060900@univ-savoie.fr> Date: Wed, 04 Feb 2004 16:04:19 +0100 From: Christophe Raffalli User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3.1) Gecko/20030428 X-Accept-Language: en-us, en MIME-Version: 1.0 To: caml-list@inria.fr Subject: Re: [Caml-list] How useful do you find the OCaml debugger? References: <20040204101550.GA32187@redhat.com> <4020C9D2.6080803@lifl.fr> In-Reply-To: <4020C9D2.6080803@lifl.fr> X-Enigmail-Version: 0.73.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigE27FA6B858563AEC87B56068" Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.33 (www . roaringpenguin . com / mimedefang) X-Loop: caml-list@inria.fr X-Spam: no; 0.00; raffalli:01 raffalli:01 univ-savoie:01 caml-list:01 debugger:01 openpgp:01 2440:01 3156:01 debuggers:01 crashes:01 backtraking:99 fork:01 fork:01 disallow:01 forks:01 X-Attachments: type="application/pgp-signature" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE27FA6B858563AEC87B56068 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit I have use a lot the debuggers, but veru often without succes because: - my program was to complex to debug it without backtracking - backtracking often crashes (but it is hard to reproduce) and moreover is not usable when performing IO (at least the last time I used it) If would be nice to have two ml functions (to use inside your code to debug): allow_debugback (): backtraking is allowed after this function is executed (create the first fork for backtracking there). This function could recieve the maximum number of fork in argument instead of unit. disallow_debugback (): no more backtracking possible (kills all the previous forks) I think this is simple to implement and not very hard to use (for instance it is easy to put such a function in the treatment part of a parser to solve the IO problems). -- Christophe Raffalli Université de Savoie Batiment Le Chablais, bureau 21 73376 Le Bourget-du-Lac Cedex tél: (33) 4 79 75 81 03 fax: (33) 4 79 75 87 42 mail: Christophe.Raffalli@univ-savoie.fr www: http://www.lama.univ-savoie.fr/~RAFFALLI --------------------------------------------- IMPORTANT: this mail is signed using PGP/MIME At least Enigmail/Mozilla, mutt or evolution can check this signature --------------------------------------------- --------------enigE27FA6B858563AEC87B56068 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAIQnzSQDyWB/+xBwRAiLMAKClvtAvgu3lMrUTcZBi3tagBCABVACgqOTS 0lFBOYxnyt6viLH4d+bpquA= =FdSr -----END PGP SIGNATURE----- --------------enigE27FA6B858563AEC87B56068-- ------------------- 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