[xquery-talk] Re: Debugging

Per Bothner per at bothner.com
Fri May 16 17:46:24 PDT 2003


Jason Hunter wrote:
> Which raises an interesting question:  What's the best way people have
> found to *debug* queries?  I notice some engines have log() functions
> which allows printf() style debugging.  That can let you watch some of
> what's going on.  Any other tricks?

The May specification includes a trace(VALUE, STRING) function that
is at least partly intended for debugging.  The latest CVS version of
Qexo include the trace functions.

The second half of the following (draft) article includes some notes
on debugging Qexo.  It is written in the context of web applications
(using servlets), but the debugging notes are generally applicable.
http://www.gnu.org/software/qexo/simple-xquery-webapp.html
-- 
	--Per Bothner
per at bothner.com   http://per.bothner.com/




More information about the Talk mailing list