X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=config.default.php;h=84c8578f5446537201d96a945b9e8556dd30bd5e;hb=666628871766f00f177ff4cf7481167a86a07863;hp=747d6f26b9fe20b6b56a14d020e8ab599de03a9f;hpb=7a9337f5114653a80da01fe3600790b93157b233;p=fa-stable.git diff --git a/config.default.php b/config.default.php index 747d6f26..84c8578f 100644 --- a/config.default.php +++ b/config.default.php @@ -25,10 +25,11 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_ // Special value 'syslog' can be used for system logger usage (see php manual). //$error_logfile = ''; $error_logfile = dirname(__FILE__).'/tmp/errors.log'; - $debug = 1; - $show_sql = 0; - $go_debug = 0; - $pdf_debug = 0; + $debug = 1; // show sql on database errors + + $show_sql = 0; // show all sql queries in page footer for debugging purposes + $go_debug = 0; // set to 1 for basic debugging, or 2 to see also backtrace after failure. + $pdf_debug = 0; // display pdf source instead reports for debugging when $go_debug!=0 // set $sql_trail to 1 only if you want to perform bugtracking sql trail // Warning: this produces huge amount of data in sql_trail table. // Don't forget switch the option off and flush the table manually after @@ -36,7 +37,7 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_ // $sql_trail = 0; // save all sql queries in sql_trail $select_trail = 0; // track also SELECT queries - if ($go_debug == 1) + if ($go_debug > 0) { error_reporting(E_ALL); ini_set("display_errors", "On");