Support for debugging sql queries in page footer.
[fa-stable.git] / config.default.php
index 747d6f26b9fe20b6b56a14d020e8ab599de03a9f..84c8578f5446537201d96a945b9e8556dd30bd5e 100644 (file)
@@ -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");