SPFE Documentation | Collections > SPFE Function Reference > debug

Template: debug

Description

Outputs a debug message to the build console.

Source file

$SPFEOT_HOME/1.0/scripts/common/utility-functions.xsl

Parameters

message

Type: item()*

The message to be output. The string "Debug: " will be prefixed to the message.

in

Type: item()*

A string describing the location where the error occurred. This might be a location in a data file or in a script, depending on what would be most useful to the user in identifying and fixing the source of the problem.

Definition

            <xsl:template name="sf:debug">
		               <xsl:param name="message"/>
		               <xsl:param name="in">Not specified.</xsl:param>
		               <xsl:if test="$verbosity='debug'">
			                   <xsl:message >#######################################################</xsl:message>
			                   <xsl:message select="'DEBUG: ', string-join($message, '')"/>
			                   <xsl:message select="'In: ', string-join($in, '')"/>
			                   <xsl:message >#######################################################</xsl:message>
		               </xsl:if>
	           </xsl:template>
         
            <xsl:template name="sf:debug">
		               <xsl:param name="message"/>
		               <xsl:param name="in">Not specified.</xsl:param>
		               <xsl:if test="$verbosity='debug'">
			                   <xsl:message >#######################################################</xsl:message>
			                   <xsl:message select="'DEBUG: ', string-join($message, '')"/>
			                   <xsl:message select="'In: ', string-join($in, '')"/>
			                   <xsl:message >#######################################################</xsl:message>
		               </xsl:if>
	           </xsl:template>