Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Possible Preprocessor and Debugger Interactions
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-10-09 (07:44)
From: Josh Stern <josh@n...>
Subject: [Caml-list] Possible Preprocessor and Debugger Interactions

I noticed in the OCaml reference manual that it is possible to
load special purpose printing routines for particular types into
ocamldebug.   However there is no mention of a facility to
load a special parser for ad hoc queries about variable values
that one might wish to perform within the debugger, using fragments
from the mini-language accepted by a pre-processor.   

I am thinking, for example of writing a library that allows routines with 
prolog-like variable binding.  Suppose a pre-processor is used to allow 
embedded definitions in a prolog-like syntax, which are pre-processed
into OCaml source code.  For debugging purposes, one would ideally like
to query the variable values using a syntax close to the original source

So my question is "Has anyone has hacked ocamldebug in
this type of way and perhaps has a relevant example to share?"
And my topical thought is that there are potentially substantive 
interactions between a sophisticated pre-processor, ocamldebug, 
and what the compiler does with the '-g' flag.
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: