Debugging
| Function | Summary |
|---|---|
| debug-accumulator | Generates debug statistics for a block of template code. |
| debug-timing-point | Measures the time it takes to process a block of template code. |
| debug-trace | Generates an XDebug dump which can be traced/analyzed. |
In this section
- debug-accumulator This mechanism generates some debug statistics based on the code that is encapsulated by "{debug-accumulator}" and "{/debug-accumulator}". The encapsulated code will be processed normally. The number of calls, total time and average time will be shown in the debug output.
- debug-timing-point This mechanism starts a timer, executes the template code that is encapsulated by "{debug-timing-point...}" and "{/debug-timing-point}", finally it stops the timer. It can be used to figure out how much time it takes to process a block of template code and/or to isolate debug messages that are gener
- debug-trace 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
Contributors
- Balazs Halasy Maintainer
- Ole-Morten Halvorsen Updated Maintainer
Comments
Add a comment