Frequently Asked Questions: Debugging Anwiki
Table of contents
What is execution trace?
Execution trace provides a lot of technical information useful for debugging purpose.When this trace is enabled, each operation being performed is logged, including:
- Database queries
- Drivers accesses
- Caches accesses
- Session state
- Environment state
It should be temporarily turned on when needed, then turned of again.
Enabling execution trace
Execution trace will be displayed to configured IP addresses.This can be configured from online configuration editor, or by editing configuration files directly from file system.
From the online configuration editor
Go to the configuration area by clicking on Manage, then Edit configuration.Click on the System tab, enable the execution trace and add your IP address (if you're on a local setup, use 127.0.0.1).
From the file system
Edit or complete the configuration file \_override\global\global\global.cfg.php as following:- <?php
- $cfg = array (
- "system" => array(
- "trace" => array(
- "enabled" => true,
- "view_ips" => array("11.22.33.44"), //your IP address here
- )
- )
- );
- ?>
Enabling emergency debug
Sometimes, even the execution trace doesn't show up and all you've got is a blank page.Here is how to force the execution trace to be displayed in real time, and for all users.
Edit the file \sources\classes\class_debug.php by updating the following lines:
- private static $bEmergencyDebug = true;
- private static $bLogDetails = true;
- en
Last edited on 11/12/2009 23:26:49