Trace (XmlDoc/XmlNode subroutine): Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 1: Line 1:
{{Template:XmlDoc/XmlNode:Trace subtitle}}
{{Template:XmlDoc/XmlNode:Trace subtitle}}


This subroutine displays an XmlDoc subtree in a readable form,
This subroutine displays an <var>XmlDoc</var> subtree in a readable form,
useful for debugging, for example.
useful for debugging, for example.
Trace is identical to the Print method (??[[Print (XmlDoc/XmlNode subroutine)|Print]]),
<var>Trace</var> is identical to the Print method (??[[Print (XmlDoc/XmlNode subroutine)|Print]]),
except the result is sent to the selected Trace stream
except the result is sent to the selected <var>Trace</var> stream
(like the User Language Trace statement), and the default indentation is one
(like the User Language <var>Trace</var> statement), and the default indentation is one
space instead of three.
space instead of three.


The default Trace stream is the terminal, so unless you
The default <var>Trace</var> stream is the terminal, so unless you
reset the ULTRACE parameter to select another stream,
reset the ULTRACE parameter to select another stream,
Trace is the same as using the Print method.
<var>Trace</var> is the same as using the Print method.
For more information about the Trace statement, see the [[SirFact]]R..
For more information about the <var>Trace</var> statement, see the [[SirFact]]R..


This method is new in ''Sirius Mods'' version 6.7.
This method is new in ''Sirius Mods'' version 6.7.
==Syntax==
==Syntax==
<p class="code">Call nr:Trace([Xpath], [options])
<p class="code">Call nr:<var>Trace</var>([Xpath], [options])
</p>
</p>
==See also==
==See also==
{{Template:XmlDoc/XmlNode:Trace footer}}
{{Template:XmlDoc/XmlNode:Trace footer}}

Revision as of 17:46, 25 January 2011

Display selected subtree on Trace stream (XmlDoc and XmlNode classes)


This subroutine displays an XmlDoc subtree in a readable form, useful for debugging, for example. Trace is identical to the Print method (??Print), except the result is sent to the selected Trace stream (like the User Language Trace statement), and the default indentation is one space instead of three.

The default Trace stream is the terminal, so unless you reset the ULTRACE parameter to select another stream, Trace is the same as using the Print method. For more information about the Trace statement, see the SirFactR..

This method is new in Sirius Mods version 6.7.

Syntax

Call nr:Trace([Xpath], [options])

See also