Enabling debug mode

Get help with installation and running phpBB.
Post Reply
User avatar
Refugees
Site Admin
France
Posts: 22
Last visit: Sat Dec 07, 2024 9:18 am

Enabling debug mode

Post by Refugees »

There are several debugging options that can be enabled to display information that is normally hidden or limited.
This is what the default content of the ./config.php file under phBB Rhea should look like:

Code: Select all

<?php
// phpBB 3.2.x auto-generated configuration file
// Do not change anything in this file!
$dbhost = 'localhost';
$dbport = '';
$dbname = 'bd_name';
$dbuser = 'bd_user_name';
$dbpasswd = 'bd_user_name_password';
$table_prefix = 'phpbb_';
$dbms = 'phpbb\\db\\driver\\mysqli';
$acm_type = 'phpbb\\cache\\driver\\file';
$phpbb_adm_relative_path = 'adm/';

@define('PHPBB_INSTALLED', true);
//@define('DEBUG', true);
@define('PHPBB_ENVIRONMENT', 'production');
//@define('DEBUG_CONTAINER', true);
//@define('PHPBB_DISPLAY_LOAD_TIME', true);
To be able to activate debug, you must uncomment these 3 lines of code in the file:

Code: Select all

//@define('DEBUG', true);
//@define('DEBUG_CONTAINER', true);
//@define('PHPBB_DISPLAY_LOAD_TIME', true);
You must delete the // at the start of the line.
Attention: this will only take effect after clearing the cache.
You will see this example display at the footer:

Code: Select all

 Time: 0.096s | Peak Memory Usage: 9.61 MiB | GZIP: Off | Queries: 12 | SQL Explain 
Post Reply