Frequently Asked Questions: Debugging Anwiki

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
This feature should not be enabled on a production environment, as it may affect performances and security.
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

From the file system

Edit or complete the configuration file \_override\global\global\global.cfg.php as following:
  1. <?php
  2. $cfg = array (
  3. "system" => array(
  4. "trace" => array(
  5. "enabled" => true,
  6. "view_ips" => array(""), //your IP address here
  7. )
  8. )
  9. );
  10. ?>

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:
  1. private static $bEmergencyDebug = true;
  2. private static $bLogDetails = true;
  • en
Last edited on 11/12/2009 23:26:49
Powered by Anwiki • 0.09 sec • 3.02 MB