Index

Tutorial Videos

Tutorial videos are available here.

Knowledge Base

Visit our User Forum for discussions & solutions

LogVariables – XpressDox

Using the LogVariables() function to debug a template

You may have already tried the Log() function to log a message, and LogDataElements() function to record values of data elements, both of which are recorded in your LogXpressDox.txt file. But perhaps the most useful of all the logging features is the LogVariables() function. With the LogVariables() function you can log the values of variables at different points in your template. It can be useful for debugging, and if you are wanting to get a clear understanding of the behaviour of the variables, especially in a very large template. The values will also be written into your LogXpressDox.txt file, located in your My Documents folder.

 

An example might be:

«LogVariables('At point a the values for Total, SubTotal and VAT are ',Total,SubTotal,VAT)»