debug Action
The debug
action can be used to insert additional information into the debug output of FIT if debugging is enabled.
A debug
action has the following attributes:
channel="user|request|foo|bar..."
defines the channel used for the message. Defaults touser
.level="verbose|debug|info|warning|error|..."
defines the log level of the message. Defaults todebug
.Either
in="..."
orxpath="..."
defines the subject to be dumped to the message text.
Refer to the debugging documentation for information on how to enable and select debug output, and which levels are valid.
The debug
action dumps the current internal representation of the subject (usually XML in UTF-8 encoding). This may differ from both the content received from the source as well as the final result sent to the client. The output of the debug
action will always be converted to UTF-8 encoding.
Examples
Note that there is a difference between the following two examples. If the main URL http://www.example.com/
is given:
Errors
The debug action will terminate the flow with an error message if not exactly one of the attributes xpath
and in
is given, if the XPath is invalid or cannot be evaluated, or if the in
attribute does not provide a valid URL.
Last updated