Debugging / analyzing¶
Debugging TypoScript can be complicated as there are many influences like the active page and conditions. Also constants can be used which get substituted. The following sections provide information about how to debug TypoScript and how to find errors within TypoScript.
Analyzing defined constants¶
The TypoScript Object Browser provides an tree view to all defined constants on the currently active page.
There are no tools that will tell whether the given TypoScript code is 100% correct. The TypoScript object browser will warn about syntax errors though:
Errors will also appear in the template analyzer, when viewing the content of a given template. It is also possible to see the full TypoScript code by clicking on the View the complete TS listing button at the bottom of the template analyzer:
The result is a long listing with all compiled line numbers, which makes it possible to find the error reported by the TypoScript object browser.
In the frontend, the admin panel is another possibility to debug TypoScript; use its section called TypoScript. It shows selected rendered (configuration) values, SQL queries, error messages and more.
TypoScript itself offers a number of debug functions: