panx framework | Documentation | Debbuging

Debbuging

To enable debug mode, change the value in config APP_DEBUG to true. This will enable many options. Also, you can select some of this function in [debug] option in config.

Saving errors

In debug mode, all errors will be logged into error.log and saved to DB.

Saving visits

In debug mode, all visits will be logged into access.log and saved to DB.

Tracy extension

You can enable Tracy extension by creating file with following code:

<?php
require_once $_SERVER['DOCUMENT_ROOT']."/../vendor/autoload.php";
use Tracy\Debugger;

Debugger::enable(!($GLOBALS["CONFIG"]["basic"]["APP_DEBUG"] == "1"));

and by adding that file into the config:

[addintional_loader_files_before]
file[] = tracy.php
array(3) { [0]=> string(20) "docs/v0.3/header.php" [1]=> string(23) "docs/v0.3/debbuging.php" [2]=> string(20) "docs/v0.3/footer.php" }