caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Richard Jones <rich@annexia.org>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] How useful do you find the OCaml debugger?
Date: Wed, 4 Feb 2004 10:15:50 +0000	[thread overview]
Message-ID: <20040204101550.GA32187@redhat.com> (raw)
In-Reply-To: <!~!AAAAAJOwVq2HeURFjPF/cT+K05uE3isA@cs.cmu.edu>

On Tue, Feb 03, 2004 at 11:31:33PM -0500, 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.

Sounds like your advisor never had a real job :-)

Debuggers are very useful indeed for tracking down logic bugs in real
world (ie. large, convoluted, badly written) programs.

I've found ocamldebug to be very painful to use, compared to, say,
gdb.  That's when it works at all.  For reasons I don't really
understand I've found that ocamldebug doesn't work very reliably,
often showing the wrong line numbers or losing the connection to the
debugged process.

One of the features I'd really like to see for ocaml would be proper
support for stabs / gdb.  At the moment I'm mainly relying on
inserting eprintf / prerr_endline into the code.

Rich.

-- 
Richard Jones. http://www.annexia.org/ http://www.j-london.com/
Merjis Ltd. http://www.merjis.com/ - improving website return on investment
If I have not seen as far as others, it is because I have been
standing in the footprints of giants.  -- from Usenet

-------------------
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 10:15 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 ` Richard Jones [this message]
2004-02-04 10:30   ` [Caml-list] " 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
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=20040204101550.GA32187@redhat.com \
    --to=rich@annexia.org \
    --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;
as well as URLs for NNTP newsgroup(s).