Menu

#582 -T option doesn\'t enable full tracing

v8.8
closed
5
2014-12-07
2006-09-12
Michael Kay
No

The -T option on the command line (for example
net.sf.saxon.Transform or net.sf.saxon.Query) doesn't
enable full instruction tracing.

This has been caused by a change in the API: at compile
time, tracing has to be enabled by calling
Configuration#setCompileWithTracing(), while at
run-time, tracing is enabled by calling
Controller#addTraceListener().

The command line support code calls the old interface
Configuration.setTraceListener, which fails to invoke
setCompileWithTracing() as intended. A patch is being
added to the Subversion source to fix this.

The general effect of this is that using -T produces
only partial trace output. On occasions however it also
generates spurious run-time errors, such as "XPDY0002:
The context item is not set".

Discussion