From: Pixel <pixel@mandrakesoft.com>
To: "Mattias Waldau" <mattias.waldau@abc.se>
Cc: <caml-list@inria.fr>
Subject: Re: Ocaml debugging (Was [Caml-list] Unix.file_descr -> int ???)
Date: 12 Jun 2002 13:17:48 +0200 [thread overview]
Message-ID: <lysn3ssq3n.fsf@leia.mandrakesoft.com> (raw)
In-Reply-To: <005901c211e5$bbe0cc90$0900a8c0@gateway>
"Mattias Waldau" <mattias.waldau@abc.se> writes:
> ocamldebug is very good, and if you sprinkle your code with asserts,
> and use the backwards stepping function, you find almost all your
> bugs within minutes.
>
> However, this only works if you don't use signatures and objects.
> Therefor, I do not use them!
>
> It would really be an improved to O'Caml if
> - Functions can be called in the debugger
> - The signatures can be by-passed (so that you can see all
> elements in your Set)
> - instance variables can be shown.
>
> I know that you can define printers for the debugger, but currently
> it is too clumsy. Why is this done by ocamlc (isn't it that what -g
> means :-)?
i totally agree!
i would also add:
- variables occuring only once are not available in debugger. which is
bad when you debug-develop (add a pattern, debug to see exactly what
is happening, add the body of the pattern)
- polymorphic values are not shown (eg: stepping through "map" only
gives you things like <poly>). I sometimes instantiate some parametric
polymorphism functions to get back debug-ability
-------------------
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
next prev parent reply other threads:[~2002-06-12 11:20 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-11 14:31 [Caml-list] Unix.file_descr -> int ??? Max Kirillov
2002-06-11 15:40 ` Bruno.Verlyck
2002-06-11 15:45 ` Xavier Leroy
2002-06-11 19:26 ` Max Kirillov
2002-06-11 23:12 ` Berke Durak
2002-06-12 0:10 ` Jacques Garrigue
2002-06-12 7:49 ` Ocaml debugging (Was [Caml-list] Unix.file_descr -> int ???) Mattias Waldau
2002-06-12 11:17 ` Pixel [this message]
2002-06-12 8:08 ` [Caml-list] Unix.file_descr -> int ??? Xavier Leroy
2002-06-12 7:42 ` Basile STARYNKEVITCH
2002-06-12 8:21 ` Xavier Leroy
2002-06-12 16:06 ` Max Kirillov
2002-06-13 10:24 ` Jean-Marc Eber
2002-06-12 13:09 ` Bruno.Verlyck
2002-06-12 15:44 ` John Max Skaller
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=lysn3ssq3n.fsf@leia.mandrakesoft.com \
--to=pixel@mandrakesoft.com \
--cc=caml-list@inria.fr \
--cc=mattias.waldau@abc.se \
/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