caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Ken Rose <kenrose@tfb.com>
To: donna+spam@cs.cmu.edu
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] How useful do you find the OCaml debugger?
Date: Wed, 04 Feb 2004 08:45:07 -0800	[thread overview]
Message-ID: <40212193.30107@tfb.com> (raw)
In-Reply-To: <!~!AAAAAJOwVq2HeURFjPF/cT+K05uE3isA@cs.cmu.edu>

donna+spam@cs.cmu.edu wrote:
> Hello,
> 
> My advisor and I were having a dicussion about the utility of debuggers for
> functional langugages. He was of the opinion that they are not very useful
> at all (for a functional language), and wondered if anyone even uses, for
> instance, the OCaml debugger. Based on google-ing I have done, it looks like
> it *is* used, but it's hard to get a good impression from just a web crawl.
> So:
> 
> - Do you personally find the OCaml debugger useful?

My biggest ocaml program is a DSL compiler that's about 6000 lines long, 
and has been gradually written over the past 5 years or so.  I've been 
pretty good about placing assertions in the code - particularly 
"assert(false)" in branches that I don't believe should be taken.  This 
has been very helpful, because when the world proves my opinion wrong, 
which it often does, I can just run in the debugger until the assertion 
trips, and then back up until I see what happened to produce the 
situation I thought was impossible.

  - ken

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


  parent reply	other threads:[~2004-02-04 16:45 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
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 [this message]
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=40212193.30107@tfb.com \
    --to=kenrose@tfb.com \
    --cc=caml-list@inria.fr \
    --cc=donna+spam@cs.cmu.edu \
    --cc=rose@acm.org \
    /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;
as well as URLs for NNTP newsgroup(s).