Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Christophe Raffalli <Christophe.Raffalli@univ-savoie.fr>
To: caml-list@inria.fr
Subject: Re: [Caml-list] How useful do you find the OCaml debugger?
Date: Wed, 04 Feb 2004 16:04:19 +0100	[thread overview]
Message-ID: <402109F3.8060900@univ-savoie.fr> (raw)
In-Reply-To: <4020C9D2.6080803@lifl.fr>

[-- Attachment #1: Type: text/plain, Size: 1277 bytes --]


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
---------------------------------------------

[-- Attachment #2: Type: application/pgp-signature, Size: 252 bytes --]

  reply	other threads:[~2004-02-04 14:59 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-04  4:31 donna+spam
2004-02-04  8:18 ` Jean-Christophe Filliatre
2004-02-04  8:46   ` Thomas Fischbacher
2004-02-04  9:19 ` [Caml-list] " Jan Kybic
2004-02-04 10:15 ` [Caml-list] " Richard Jones
2004-02-04 10:30   ` Pierre Boulet
2004-02-04 15:04     ` Christophe Raffalli [this message]
2004-02-04 19:26       ` Kip Macy
2004-02-04 10:36   ` Henri Dubois-Ferriere
2004-02-04 15:38     ` Damien Doligez
2004-02-04 12:52 ` Nuutti Kotivuori
2004-02-04 15:35 ` Damien Doligez
2004-02-04 16:45 ` Ken Rose
2004-02-04 19:12 ` Issac Trotts
2004-02-22 21:21 ` _JusSx_

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=402109F3.8060900@univ-savoie.fr \
    --to=christophe.raffalli@univ-savoie.fr \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox