caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] OCamldebug
@ 2017-02-23 16:24 Tom Ridge
  2017-02-23 16:31 ` Ivan Gotovchits
  0 siblings, 1 reply; 9+ messages in thread
From: Tom Ridge @ 2017-02-23 16:24 UTC (permalink / raw)
  To: caml-list

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

Dear All,

I am debugging some code. For various reasons I have started to use
ocamldebug rather than printf.

I should say that ocamldebug is excellent. Really excellent. Especially the
"backwards" stepping.

However, sometimes I want to see the value of a particular variable. I can
use the "p" (print) command as:

(ocd) p kra
kra: Key_value_types.key = <abstr>

The problem is that I know that kra is a string. But ocamldebug only shows
<abstr>.

Admittedly the code is functorized. But I have a feeling I should be able
to tweak something to get ocamldebug to print the value of kra.

Any ideas?

T

[-- Attachment #2: Type: text/html, Size: 873 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2017-02-24  9:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-23 16:24 [Caml-list] OCamldebug Tom Ridge
2017-02-23 16:31 ` Ivan Gotovchits
2017-02-23 16:49   ` Tom Ridge
2017-02-23 17:02     ` Ivan Gotovchits
2017-02-24  9:16       ` Tom Ridge
2017-02-24  9:20         ` Tom Ridge
2017-02-24  9:28         ` Sébastien Hinderer
2017-02-24  8:41     ` Sébastien Hinderer
2017-02-24  9:14       ` Tom Ridge

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