Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.



Generates an XDebug dump which can be traced/analyzed.


{debug-trace [ id=id ]}


id string The name of the debug file. No.


This mechanism makes it possible to trace a block of code using "XDebug". The result will be a trace file made by XDebug which can be analyzed. If XDebug is not installed and enabled, this mechanism will not do anything. The "id" parameter can be used to name the trace file. The file extension will be ".xt". The default ID/name is "template-debug". Please note that the trace file will be reset every time a debug-trace is encountered; it is a good idea to have one unique ID per entry.


Example 1

{debug-trace id='fetch-trace'}
{def $nodes=fetch( 'content', 'tree', hash( 'parent_node_id', 2 ) )}
{foreach( $nodes as $node )}

This will generate an XDebug trace file called "fetch-trace.xt".

Balazs Halasy (21/03/2005 10:21 am)

Julia Shymova (11/09/2007 12:42 pm)

Balazs Halasy, Julia Shymova


There are no comments.