Troubleshooting
Writing and debugging complex TrafficScript rules is an involved process. This chapter lists some useful techniques.
Checking Syntax
A syntax error occurs if you make an error in your TrafficScript rule that prevents the Traffic Manager from fully understanding the rule.
When editing a rule in the Admin UI, you can check the syntax at any time using the Check Syntax button on the Catalogs > Rules > Edit page.
You can also check the syntax of a TrafficScript rule from the command line using the zeus.zxtm binary as follows:
$ export ZEUSHOME=/usr/local/zeus
$ $ZEUSHOME/zxtm/bin/zeus.zxtm --rulesyntaxcheck rulefile
Compilation failed, with 1 error
Error: line 20: Wrong number of arguments to function pool.use
pool.use( );
^TrafficScript is not case-sensitive. Function names and variables can be referred to using any combination of case.
