home
features
quick start
download
documentation
thymol files
configuration
message resources
control parameters
expression objects
thymol types
thymol API
thymol extensions
examples
sessions
say-hello
stsm example
with-dialect
extrathyme
petclinic
news
credits
user forum
issues
browser constraints
other known issues
create new issue
thymeleaf

thymoljs

thDebug

Thymol includes a very basic debugging facility, setting the value of the thDebug control parameter to "true" puts Thymol into debug mode.

When running in debug mode, Thymol will open an alert window each time a processing error occurs.

For example, debug mode, an alert window is opened when a parsing error or an unrecognisable conditional expression is encountered or whenever an include or replace template cannot be opened.

You can define thDebug inside your template (before the Thymol script tag):

        <script th:remove="all" type="text/javascript">
            var thDebug = true;
        </script>

or define thDebug when Thymol is loaded:

        <script type="text/javascript" src="../../../js/thymol.js" data-thymol-parameters="?thProtocol=http://&thDebug=true"></script>

or define thDebug when the template is loaded:

        <a href="jjb/project/big-example/page5.html?firstName=Fred&surName=Bloggs&thDebug=true">link</a>

In the case where a value for thDebug is defined by both a JavaScript variable and a request parameter, the value supplied as a request parameter will take precedence.